feat(autocomplete): add autocompletion for fish shell

This commit is contained in:
2022-11-15 22:24:34 +01:00
parent 14187449a5
commit 521d3d1259
3 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,7 @@
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'