mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-23 12:31:40 +08:00
Fix for bobthefish ruby version segment
… when there's no version to show. Fixes #370
This commit is contained in:
parent
b664e263d4
commit
e4d8c6ed52
|
@ -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 ' '
|
||||
|
|
Loading…
Reference in New Issue
Block a user