From 8063d6d0b81276e5a4d3e5c4d0d2f86a73b16086 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 25 Sep 2019 09:44:27 +0200 Subject: [PATCH] complete builtin: suggest commands for options --comand and --wraps --- share/completions/complete.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/complete.fish b/share/completions/complete.fish index 266e3a687..35ab244df 100644 --- a/share/completions/complete.fish +++ b/share/completions/complete.fish @@ -1,6 +1,6 @@ # Completions for complete -complete -c complete -s c -l command -d "Command to add completion to" -r +complete -c complete -s c -l command -d "Command to add completion to" -xa '(__fish_complete_command)' complete -c complete -s p -l path -d "Path to add completion to" -r complete -c complete -s s -l short-option -d "POSIX-style short option to complete" -x complete -c complete -s l -l long-option -d "GNU-style long option to complete" -x @@ -14,7 +14,7 @@ complete -c complete -s e -l erase -d "Remove completion" complete -c complete -s h -l help -d "Display help and exit" complete -c complete -s C -l do-complete -d "Print completions for a commandline specified as a parameter" complete -c complete -s n -l condition -d "Completion only used if command has zero exit status" -x -complete -c complete -s w -l wraps -d "Inherit completions from specified command" -r +complete -c complete -s w -l wraps -d "Inherit completions from specified command" -xa '(__fish_complete_command)' # Deprecated options