Set git sync config within git-sync-all script

This commit is contained in:
Evie Litherland-Smith 2024-01-15 07:35:43 +00:00
parent e8758efb0c
commit 4468fa1a8f

View file

@ -3,6 +3,8 @@
for DIRECTORY in $HOME/.nixos $HOME/.emacs $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do for DIRECTORY in $HOME/.nixos $HOME/.emacs $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do
echo "--- $DIRECTORY ---" echo "--- $DIRECTORY ---"
mkdir -p $DIRECTORY mkdir -p $DIRECTORY
cd $DIRECTORY && git-sync cd $DIRECTORY
git config --bool branch.main.sync true
git-sync
cd - cd -
done done