mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Fix fish subcommand completion
This allows subcommand style plugins to properly autocomplete. Existing commands are not affected. Example, say you have support for `pyenv foo bar --flag`, then this allows the last `--flag` argument to be properly completed.
This commit is contained in:
parent
f36d735e27
commit
e09d61780c
1 changed files with 2 additions and 1 deletions
|
@ -18,5 +18,6 @@ end
|
|||
|
||||
complete -f -c pyenv -n '__fish_pyenv_needs_command' -a '(pyenv commands)'
|
||||
for cmd in (pyenv commands)
|
||||
complete -f -c pyenv -n "__fish_pyenv_using_command $cmd" -a "(pyenv completions $cmd)"
|
||||
complete -f -c pyenv -n "__fish_pyenv_using_command $cmd" -a \
|
||||
"(pyenv completions (commandline -opc)[2..-1])"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue