mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-24 10:23:43 +08:00
29f35d6cdf
This gives us more accurate completions because completion scripts get expanded paths
6 lines
508 B
Fish
6 lines
508 B
Fish
complete -c builtin -n 'test (count (commandline -xpc)) -eq 1' -s h -l help -d 'Display help and exit'
|
|
complete -c builtin -n 'test (count (commandline -xpc)) -eq 1' -s n -l names -d 'Print names of all existing builtins'
|
|
complete -c builtin -n 'test (count (commandline -xpc)) -eq 1' -s q -l query -d 'Tests if builtin exists'
|
|
complete -c builtin -n 'test (count (commandline -xpc)) -eq 1' -xa '(builtin -n)'
|
|
complete -c builtin -n 'test (count (commandline -xpc)) -ge 2' -xa '(__fish_complete_subcommand)'
|