|
|
|
@ -777,11 +777,11 @@ function __bobthefish_prompt_rubies -S -d 'Display current Ruby information'
|
|
|
|
|
else if type -q chruby # chruby is implemented as a function, so omitting the -f is intentional
|
|
|
|
|
set ruby_version $RUBY_VERSION
|
|
|
|
|
else if type -fq asdf
|
|
|
|
|
asdf current ruby 2>/dev/null | read -l asdf_ruby_version asdf_provenance
|
|
|
|
|
asdf current ruby 2>/dev/null | tr -s " " | read -l asdf_ruby_version asdf_provenance
|
|
|
|
|
or return
|
|
|
|
|
|
|
|
|
|
# If asdf changes their ruby version provenance format, update this to match
|
|
|
|
|
[ "$asdf_provenance" = " (set by $HOME/.tool-versions)" ]
|
|
|
|
|
[ "$asdf_provenance" = "(set by $HOME/.tool-versions)" ]
|
|
|
|
|
and return
|
|
|
|
|
|
|
|
|
|
set ruby_version $asdf_ruby_version
|
|
|
|
|