1
0
Fork 0
gita/auto-completion/fish/gita.fish
Daniel Baumann cf5dbba8e5
Merging upstream version 0.16.7.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-11 18:52:12 +01:00

17 lines
484 B
Fish

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)'