mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-23 13:16:43 +08:00
Fix extraneous output from type
on some fishes.
This commit is contained in:
parent
2259057cdb
commit
d87760e34c
|
@ -351,9 +351,9 @@ end
|
|||
function __bobthefish_prompt_rubies -d 'Display current Ruby (rvm/rbenv)'
|
||||
[ "$theme_display_ruby" = 'no' ]; and return
|
||||
set -l ruby_version
|
||||
if type rvm-prompt >/dev/null
|
||||
if type rvm-prompt >/dev/null 2>&1
|
||||
set ruby_version (rvm-prompt i v g)
|
||||
else if type rbenv >/dev/null
|
||||
else if type rbenv >/dev/null 2>&1
|
||||
set ruby_version (rbenv version-name)
|
||||
# Don't show global ruby version...
|
||||
[ "$ruby_version" = (rbenv global) ]; and return
|
||||
|
|
Loading…
Reference in New Issue
Block a user