nixos/home/scripts/git-sync-all.sh

11 lines
284 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 ---"
mkdir -p $DIRECTORY
cd $DIRECTORY
git config --bool branch.main.sync true
git-sync
cd -
done