summaryrefslogtreecommitdiffstats
path: root/fish2024/functions/annex-sync.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish2024/functions/annex-sync.fish')
-rw-r--r--fish2024/functions/annex-sync.fish4
1 files changed, 4 insertions, 0 deletions
diff --git a/fish2024/functions/annex-sync.fish b/fish2024/functions/annex-sync.fish
new file mode 100644
index 0000000..39ac15c
--- /dev/null
+++ b/fish2024/functions/annex-sync.fish
@@ -0,0 +1,4 @@
+function annex-sync --wraps='cd ~/annex/ && git annex sync && cd -' --description 'alias annex-sync=cd ~/annex/ && git annex sync && cd -'
+ cd ~/annex/ && git annex sync && cd - $argv
+
+end