mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
rbenv completion: Remove trailing spaces
This commit is contained in:
parent
40df11b162
commit
2587bbc4a7
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue