summaryrefslogtreecommitdiffstats
path: root/auto-completion/fish/gita.fish
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--auto-completion/fish/gita.fish17
1 files changed, 17 insertions, 0 deletions
diff --git a/auto-completion/fish/gita.fish b/auto-completion/fish/gita.fish
new file mode 100644
index 0000000..91580db
--- /dev/null
+++ b/auto-completion/fish/gita.fish
@@ -0,0 +1,17 @@
+
+function __fish_gita_complete
+ set -x _ARGCOMPLETE 1
+ set -x _ARGCOMPLETE_DFS \t
+ set -x _ARGCOMPLETE_IFS \n
+ set -x _ARGCOMPLETE_SUPPRESS_SPACE 1
+ set -x _ARGCOMPLETE_SHELL fish
+ set -x COMP_LINE (commandline -p)
+ set -x COMP_POINT (string length (commandline -cp))
+ set -x COMP_TYPE
+ if set -q _ARC_DEBUG
+ gita 8>&1 9>&2 1>&9 2>&1
+ else
+ gita 8>&1 9>&2 1>/dev/null 2>&1
+ end
+end
+complete --command gita -f -a '(__fish_gita_complete)'