From 2587bbc4a768ed7097e35cf87d43203ff94aa961 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 10 Sep 2015 15:10:25 +0200 Subject: [PATCH] rbenv completion: Remove trailing spaces --- share/completions/rbenv.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/completions/rbenv.fish b/share/completions/rbenv.fish index f5b277e0a..cc6ef80cf 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