mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
22cb03c236
Before:
* hand write arg parse
* only accepts one suffix
After:
* use `arg_parse` to parse args
* accepts multi suffixes
Closes #9611.
(cherry picked from commit aa65856ee0
)
8 lines
473 B
Fish
8 lines
473 B
Fish
# Multiple versions are often installed as clang++, clang++-7, clang++-8, etc.
|
|
# They won't be autoloaded, but once clang++ is used once, they'll gain completions too.
|
|
# This could potentially be moved to __fish_config_interactive.fish in the future.
|
|
|
|
complete -p '*clang++*' -n __fish_should_complete_switches -xa '(__fish_complete_clang)'
|
|
complete -p '*clang++*' -n 'not __fish_should_complete_switches' \
|
|
-k -xa "(__fish_complete_suffix .o .out .c .cpp .so .dylib)"
|