diff options
author | 2015-09-10 15:10:25 +0200 | |
---|---|---|
committer | 2015-09-10 15:10:25 +0200 | |
commit | 2587bbc4a768ed7097e35cf87d43203ff94aa961 (patch) | |
tree | e7be6b643528df7801014051d8f51e2a53480304 | |
parent | 40df11b16235664847f8d72f31bef01aff6615e3 (diff) |
rbenv completion: Remove trailing spaces
-rw-r--r-- | share/completions/rbenv.fish | 4 |
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 |