diff --git a/completions/rbenv.zsh b/completions/rbenv.zsh index c439c5a..5b23d42 100644 --- a/completions/rbenv.zsh +++ b/completions/rbenv.zsh @@ -11,7 +11,7 @@ _rbenv() { if [ "${#words}" -eq 2 ]; then completions="$(rbenv commands)" else - completions="$(rbenv completions ${words[2,-1]})" + completions="$(rbenv completions ${words[2,-2]})" fi reply=("${(ps:\n:)completions}")