From a08626d43fc3181c51eaffe71baca45fe3db8d4f Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 10 Feb 2015 14:02:06 -0800 Subject: [PATCH] Fix for bobthefish ruby version segment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … when there's no version to show. Fixes #370 --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 9a9e3e5..11faaa7 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -358,7 +358,7 @@ function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)' # Don't show global ruby version... [ "$ruby_version" = (rbenv global) ]; and return end - [ -w "$ruby_version" ]; and return + [ -z "$ruby_version" ]; and return __bobthefish_start_segment $__bobthefish_ruby_red $__bobthefish_lt_grey --bold echo -n -s $ruby_version ' '