mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
6a60377e02
darcs-hash:20070128032652-ac50b-dae70e7b2efddbc757aae8bc7d1884ff5e010621.gz
12 lines
354 B
Fish
12 lines
354 B
Fish
#
|
|
# Completion for sudo
|
|
#
|
|
|
|
complete -c sudo --description "Command to run" -x -a '(__fish_complete_subcommand_root)'
|
|
|
|
complete -c sudo -s h -n "__fish_no_arguments" --description "Display help and exit"
|
|
complete -c sudo -s v -n "__fish_no_arguments" --description "Validate"
|
|
|
|
# Since sudo runs subcommands, it can accept any switches
|
|
complete -c sudo -u
|