rbenv completion: Remove trailing spaces

This commit is contained in:
Fabian Homborg 2015-09-10 15:10:25 +02:00
parent 40df11b162
commit 2587bbc4a7

View file

@ -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