aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/rbenv.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/completions/rbenv.fish')
-rw-r--r--share/completions/rbenv.fish4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/completions/rbenv.fish b/share/completions/rbenv.fish
index f5b277e0..cc6ef80c 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