add --git sync option

This commit is contained in:
2026-01-23 17:37:04 +02:00
parent ce339d383c
commit a3598a5f79
3 changed files with 88 additions and 2 deletions

View File

@@ -24,8 +24,10 @@ elif [ "$1" = "--git" ]; then
ssh -t $SERVER_USER@$SERVER_HOST \
"cd $SERVER_PATH && ./lazygit"
# After that sync remote with --delete flag
bash remote-local.sh --delete
# After that sync remote with --delete flag (if script exists)
if [ -f "remote-local.sh" ]; then
bash remote-local.sh --delete
fi
elif [ "$1" = "--todo" ]; then
todoSearch
else