From e4d8c6ed528a87b2a965c3f54e08a4fc85f0193f 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 --- themes/bobthefish/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/bobthefish/fish_prompt.fish b/themes/bobthefish/fish_prompt.fish index 9a9e3e5..11faaa7 100644 --- a/themes/bobthefish/fish_prompt.fish +++ b/themes/bobthefish/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 ' '