Add zsh function to quickly sync all (current) git-sync directories
This commit is contained in:
parent
9123788cda
commit
31321e5dad
|
@ -226,6 +226,12 @@
|
||||||
autocd = true;
|
autocd = true;
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
initExtra = ''
|
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 () {
|
xdg-query-program () {
|
||||||
FILETYPE=$(xdg-mime query filetype $@)
|
FILETYPE=$(xdg-mime query filetype $@)
|
||||||
DEFAULT=$(xdg-mime query default $FILETYPE)
|
DEFAULT=$(xdg-mime query default $FILETYPE)
|
||||||
|
|
Loading…
Reference in a new issue