nixos/home/scripts/git-sync-all.sh
Evie Litherland-Smith eeb8972fe6 Fix lint suggestions for git-sync-all
Use subshell for each directory rather than cd and cd back

Add git-sync option to sync new files
2024-02-05 06:22:44 +00:00

10 lines
243 B
Bash
Executable file

git -C "$HOME/.emacs/" pull --ff-only
for DIRECTORY in $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do
echo "--- $DIRECTORY ---"
(
cd "$DIRECTORY" || exit
git-sync -ns
)
done