abra/scripts/autocomplete/fish
Moritz 521d3d1259
All checks were successful
continuous-integration/drone/push Build is passing
feat(autocomplete): add autocompletion for fish shell
2022-11-15 22:24:34 +01:00

8 lines
334 B
Plaintext

function complete_abra_args
set -l cmd (commandline -poc) --generate-bash-completion
$cmd
end
complete -c abra -f -n "not __fish_seen_subcommand_from -h --help -v --version complete_abra_args" -a "(complete_abra_args)"
complete -c abra -f -s h -l help -d 'show help'
complete -c abra -f -s v -l version -d 'print the version'