Add zsh function to quickly sync all (current) git-sync directories

This commit is contained in:
Evie Litherland-Smith 2024-01-14 12:59:17 +00:00
parent 9123788cda
commit 31321e5dad

View file

@ -226,6 +226,12 @@
autocd = true;
historySubstringSearch.enable = true;
initExtra = ''
git-sync-all () {
for DIRECTORY in $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do
echo "--- $DIRECTORY ---"
cd $DIRECTORY && git-sync || echo "git-sync failed for $DIRECTORY"
done
}
xdg-query-program () {
FILETYPE=$(xdg-mime query filetype $@)
DEFAULT=$(xdg-mime query default $FILETYPE)