mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Add -u switch to completions which can have unknown switches or which are incomplete
darcs-hash:20070128032652-ac50b-dae70e7b2efddbc757aae8bc7d1884ff5e010621.gz
This commit is contained in:
parent
fc87b3c4b4
commit
6a60377e02
5 changed files with 12 additions and 1 deletions
|
@ -9,4 +9,6 @@ complete -c configure -l prefix --description "Architecture-independent install
|
|||
complete -c configure -l exec-prefix --description "Architecture-dependent install directory" -a "__fish_complete_directories (commandline -ct)" -x
|
||||
complete -c configure -l build --description "Configure for building on BUILD" -x
|
||||
complete -c configure -l host --description "Cross-compile to build programs to run on HOST" -x
|
||||
complete -c configure -l target --description "Configure for building compilers for TARGET" -x -u
|
||||
complete -c configure -l target --description "Configure for building compilers for TARGET" -x
|
||||
|
||||
complete -c configure -u
|
||||
|
|
|
@ -8,3 +8,5 @@ complete -c env -s u -l unset --description "Remove variable from the environmen
|
|||
complete -c env -l help --description "Display help and exit"
|
||||
complete -c env -l version --description "Display version and exit"
|
||||
|
||||
# Since env runs subcommands, it can accept any switches
|
||||
complete -c env -u
|
||||
|
|
|
@ -82,4 +82,6 @@ complete -c mplayer -o vfm -x --description "Video output" -a "
|
|||
complete -c mplayer -l help --description "Display help and exit"
|
||||
complete -c mplayer -l version --description "Display version and exit"
|
||||
|
||||
complete -c mplayer -u
|
||||
|
||||
set -e mplayer_lang
|
||||
|
|
|
@ -6,3 +6,6 @@ complete -c sudo --description "Command to run" -x -a '(__fish_complete_subcomma
|
|||
|
||||
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
|
||||
|
|
|
@ -9,3 +9,5 @@ complete -c time -s v -l verbose -n "__fish_no_arguments" --description "Verbose
|
|||
complete -c time -l help -n "__fish_no_arguments" --description "Display help and exit"
|
||||
complete -c time -s V -l version -n "__fish_no_arguments" --description "Display version and exit"
|
||||
|
||||
# Since time runs subcommands, it can accept any switches
|
||||
complete -c time -u
|
||||
|
|
Loading…
Reference in a new issue