#!/usr/bin/env sh
set -eu

log_file="$HOME/.cache/matugen-sync-zellij.log"

mkdir -p "$HOME/.cache"

{
  ssh mac-attio "mkdir -p ~/.config/zellij/themes"
  scp "$HOME/.config/zellij/themes/matugen.kdl" \
    mac-attio:~/.config/zellij/themes/
  ssh mac-attio "touch ~/.config/zellij/config.kdl"
} >>"$log_file" 2>&1
