diff --git a/share/completions/rbenv.fish b/share/completions/rbenv.fish index f5b277e0a..cc6ef80cf 100644 --- a/share/completions/rbenv.fish +++ b/share/completions/rbenv.fish @@ -31,7 +31,9 @@ function __fish_rbenv_official_rubies if command -s ruby-build >/dev/null ruby-build --definitions else - rbenv install --list + # Remove trailing spaces, otherwise completion options appear like + # "\ \ option" + rbenv install --list | sed "s/^[[:space:]]*//" end end