mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Merge pull request #45 from pik/master
Support chruby ruby_version for show_ruby()
This commit is contained in:
commit
759810d792
@ -599,6 +599,8 @@ function __bobthefish_show_ruby -S -d 'Current Ruby (rvm/rbenv)'
|
||||
or set global_ruby_version system
|
||||
|
||||
[ "$ruby_version" = "$global_ruby_version" ]; and return
|
||||
else if type -q chruby
|
||||
set ruby_version $RUBY_VERSION
|
||||
end
|
||||
[ -z "$ruby_version" ]; and return
|
||||
__bobthefish_start_segment $__bobthefish_ruby_red $__bobthefish_lt_grey --bold
|
||||
|
Loading…
Reference in New Issue
Block a user