Handle whitespace in asdf system ruby detection.

Fixes #250
pull/230/merge
Justin Hileman 4 years ago
parent 6e75f31c3f
commit 7c2d90152e

@ -781,7 +781,7 @@ function __bobthefish_prompt_rubies -S -d 'Display current Ruby information'
or return
# If asdf changes their ruby version provenance format, update this to match
[ "$asdf_provenance" = "(set by $HOME/.tool-versions)" ]
[ (string trim -- "$asdf_provenance") = "(set by $HOME/.tool-versions)" ]
and return
set ruby_version $asdf_ruby_version

Loading…
Cancel
Save