mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
29f35d6cdf
This gives us more accurate completions because completion scripts get expanded paths
5 lines
545 B
Fish
5 lines
545 B
Fish
complete -c command -n 'test (count (commandline -xpc)) -eq 1' -s h -l help -d 'Display help and exit'
|
|
complete -c command -n 'test (count (commandline -xpc)) -eq 1' -s a -l all -d 'Print all external commands by the given name'
|
|
complete -c command -n 'test (count (commandline -xpc)) -eq 1' -s q -l quiet -l query -d 'Do not print anything, only set exit status'
|
|
complete -c command -n 'test (count (commandline -xpc)) -eq 1' -s s -s v -l search -d 'Print the file that would be executed'
|
|
complete -c command -xa "(__fish_complete_subcommand)"
|