Skip to content
Browse files

Fix multiple argument completion with zsh

This changes the zsh completion to omit the final, incomplete command
line argument when invoking rbenv completions, making it consistent with
the bash completion.  Since no built-in completion cares about the
argument list, this inconsistency only affected plugins.
  • Loading branch information...
1 parent 13f36e0 commit 0d1f1d09f029e818d966359e49a77505c84ff46d @tpope tpope committed with mislav
Showing with 1 addition and 1 deletion.
  1. +1 −1 completions/rbenv.zsh
2 completions/rbenv.zsh
@@ -11,7 +11,7 @@ _rbenv() {
if [ "${#words}" -eq 2 ]; then
completions="$(rbenv commands)"
- completions="$(rbenv completions ${words[2,-1]})"
+ completions="$(rbenv completions ${words[2,-2]})"

0 comments on commit 0d1f1d0

Please sign in to comment.
Something went wrong with that request. Please try again.