Fix always displaying system ruby when set by asdf

Since the asdf-ruby integration with bobthefish was written, asdf has changed their ruby version provenance format.
`asdf current ruby 2>/dev/null | read -l asdf_ruby_version asdf_provenance` now results in $asdf_provenance being "   (set by $HOME/.tool-versions)", which results in the system ruby version always being displayed, which is annoying. This is a small patch to fix that. I've tested it locally.
pull/250/head
Patrick 4 years ago committed by GitHub
parent 6e75f31c3f
commit e9f9496d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)" ]
[ "$asdf_provenance" = " (set by $HOME/.tool-versions)" ]
and return
set ruby_version $asdf_ruby_version

Loading…
Cancel
Save