17 lines
479 B
Bash
Executable File
17 lines
479 B
Bash
Executable File
#!/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
|