Skip to content
Snippets Groups Projects
Commit e4d8c6ed authored by Justin Hileman's avatar Justin Hileman
Browse files

Fix for bobthefish ruby version segment

… when there's no version to show.

Fixes #370
parent b664e263
Branches
Tags
No related merge requests found
...@@ -358,7 +358,7 @@ function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)' ...@@ -358,7 +358,7 @@ function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)'
# Don't show global ruby version... # Don't show global ruby version...
[ "$ruby_version" = (rbenv global) ]; and return [ "$ruby_version" = (rbenv global) ]; and return
end end
[ -w "$ruby_version" ]; and return [ -z "$ruby_version" ]; and return
__bobthefish_start_segment $__bobthefish_ruby_red $__bobthefish_lt_grey --bold __bobthefish_start_segment $__bobthefish_ruby_red $__bobthefish_lt_grey --bold
echo -n -s $ruby_version ' ' echo -n -s $ruby_version ' '
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment