mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
parent
1eb4cf63ac
commit
87534a008a
@ -678,10 +678,11 @@ function __bobthefish_show_ruby -S -d 'Current Ruby (rvm/rbenv)'
|
||||
set -q RBENV_ROOT
|
||||
or set -l RBENV_ROOT $HOME/.rbenv
|
||||
|
||||
read -l global_ruby_version <$RBENV_ROOT/version
|
||||
[ -e "$RBENV_ROOT/version" ]
|
||||
and read -l global_ruby_version <"$RBENV_ROOT/version"
|
||||
|
||||
[ "$global_ruby_version" ]
|
||||
or set global_ruby_version system
|
||||
or set -l global_ruby_version system
|
||||
|
||||
[ "$ruby_version" = "$global_ruby_version" ]; and return
|
||||
else if type -q chruby
|
||||
|
Loading…
Reference in New Issue
Block a user