Merge pull request #968 from maxnordlund/patch-1

Fix fish subcommand completion
This commit is contained in:
Mislav Marohnić 2017-11-29 15:47:19 +01:00 committed by GitHub
commit c310bc5f83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 rbenv -n "__fish_rbenv_using_command $cmd" -a \
"(rbenv completions (commandline -opc)[2..-1])"
end