git-sync-all: cd back to previous directory after command
This commit is contained in:
parent
d15720a3d4
commit
902fb279a8
|
@ -229,7 +229,8 @@
|
|||
git-sync-all () {
|
||||
for DIRECTORY in $HOME/.nixos $HOME/.emacs $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do
|
||||
echo "--- $DIRECTORY ---"
|
||||
cd $DIRECTORY && git-sync || echo "git-sync failed for $DIRECTORY"
|
||||
cd $DIRECTORY && git-sync
|
||||
cd -
|
||||
done
|
||||
}
|
||||
xdg-query-program () {
|
||||
|
|
Loading…
Reference in a new issue