fuck yes :)

This commit is contained in:
2026-02-19 23:15:15 +00:00
parent fde3483278
commit c810bf0409
6 changed files with 42 additions and 5 deletions

View File

@@ -45,4 +45,4 @@ output_path = '~/.config/jjui/themes/matugen.toml'
[templates.nvim]
input_path = '~/.config/matugen/templates/neovim.lua'
output_path = '~/.config/nvim/lua/plugins/dankcolors.lua'
post_hook = '(scp -i ~/.ssh/mac-attio ~/.config/nvim/lua/plugins/dankcolors.lua thomasglopes@192.168.1.205:~/.config/nvim/lua/plugins/ >/dev/null 2>&1 &)'
post_hook = 'nohup ~/.config/matugen/scripts/sync-nvim-mac.sh >/dev/null 2>&1 &'

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -eu
lock_dir="$HOME/.cache/matugen-sync-nvim.lock"
log_file="$HOME/.cache/matugen-sync-nvim.log"
mkdir -p "$HOME/.cache"
if mkdir "$lock_dir" 2>/dev/null; then
{
ssh -i "$HOME/.ssh/mac-attio" thomasglopes@192.168.1.205 "mkdir -p ~/.config/nvim/lua/plugins"
scp -i "$HOME/.ssh/mac-attio" "$HOME/.config/nvim/lua/plugins/dankcolors.lua" \
thomasglopes@192.168.1.205:~/.config/nvim/lua/plugins/
} >>"$log_file" 2>&1
rmdir "$lock_dir"
fi