Provide completions for complete without -c (#8587)

This commit is contained in:
Kid 2021-12-27 05:49:28 +08:00 committed by GitHub
parent 8abc6b2f8c
commit 36be635393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
# Completions for complete
complete -c complete -xa '(__fish_complete_command)'
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