mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
rbenv completion: Remove trailing spaces
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user