summaryrefslogtreecommitdiffstats
path: root/.zfunc/_dotfiles
diff options
context:
space:
mode:
Diffstat (limited to '.zfunc/_dotfiles')
-rw-r--r--.zfunc/_dotfiles9
1 files changed, 9 insertions, 0 deletions
diff --git a/.zfunc/_dotfiles b/.zfunc/_dotfiles
new file mode 100644
index 0000000..1a29842
--- /dev/null
+++ b/.zfunc/_dotfiles
@@ -0,0 +1,9 @@
+#compdef dotfiles
+
+_arguments -C '*:: :->args'
+
+oldwords=($words)
+words=(git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME/.dotfiles/" ${words[@]:0})
+CURRENT=$(( CURRENT + $#words - $#oldwords ))
+_normal && return 0
+return 1