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