2018-12-04 15:12:54 +08:00
|
|
|
# Completions for complete
|
|
|
|
|
2021-12-27 05:49:28 +08:00
|
|
|
complete -c complete -xa '(__fish_complete_command)'
|
2019-09-25 15:44:27 +08:00
|
|
|
complete -c complete -s c -l command -d "Command to add completion to" -xa '(__fish_complete_command)'
|
2019-09-24 13:43:38 +08:00
|
|
|
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
|
|
|
|
complete -c complete -s o -l old-option -d "Old style long option to complete" -x
|
2018-12-04 15:14:01 +08:00
|
|
|
complete -c complete -s f -l no-files -d "Don't use file completion"
|
2021-05-16 12:02:03 +08:00
|
|
|
complete -c complete -s F -l force-files -d "Always use file completion"
|
2017-10-12 01:17:35 +08:00
|
|
|
complete -c complete -s r -l require-parameter -d "Require parameter"
|
2020-03-14 17:41:57 +08:00
|
|
|
complete -c complete -s x -l exclusive -d "Require parameter and don't use file completion"
|
2021-05-17 02:47:05 +08:00
|
|
|
complete -c complete -s a -l arguments -d "Space-separated list of possible arguments" -x
|
2019-09-24 13:43:38 +08:00
|
|
|
complete -c complete -s d -l description -d "Description of completion" -x
|
2017-10-12 01:17:35 +08:00
|
|
|
complete -c complete -s e -l erase -d "Remove completion"
|
|
|
|
complete -c complete -s h -l help -d "Display help and exit"
|
2018-12-04 15:14:01 +08:00
|
|
|
complete -c complete -s C -l do-complete -d "Print completions for a commandline specified as a parameter"
|
2019-09-24 13:43:38 +08:00
|
|
|
complete -c complete -s n -l condition -d "Completion only used if command has zero exit status" -x
|
2019-09-25 15:44:27 +08:00
|
|
|
complete -c complete -s w -l wraps -d "Inherit completions from specified command" -xa '(__fish_complete_command)'
|
2021-05-17 02:47:05 +08:00
|
|
|
complete -c complete -s k -l keep-order -d "Keep order of arguments instead of sorting alphabetically"
|
2018-12-04 15:12:54 +08:00
|
|
|
|
|
|
|
# Deprecated options
|
|
|
|
|
|
|
|
# complete -c complete -s A -l authoritative
|
|
|
|
# complete -c complete -s u -l unauthoritative
|