mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Use type -q
instead of which
.
This commit is contained in:
parent
ad36c7ada5
commit
a9cc3400fa
@ -466,9 +466,9 @@ end
|
||||
|
||||
function __bobthefish_show_ruby -S -d 'Current Ruby (rvm/rbenv)'
|
||||
set -l ruby_version
|
||||
if which rvm-prompt >/dev/null 2>&1
|
||||
if type -q rvm-prompt
|
||||
set ruby_version (__bobthefish_rvm_info)
|
||||
else if which rbenv >/dev/null 2>&1
|
||||
else if type -q rbenv
|
||||
set ruby_version (rbenv version-name)
|
||||
# Don't show global ruby version...
|
||||
set -q RBENV_ROOT; and set rbenv_root $RBENV_ROOT; or set rbenv_root ~/.rbenv
|
||||
|
Loading…
Reference in New Issue
Block a user