mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
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.
This commit is contained in:
parent
6e75f31c3f
commit
e9f9496d6b
@ -781,7 +781,7 @@ function __bobthefish_prompt_rubies -S -d 'Display current Ruby information'
|
|||||||
or return
|
or return
|
||||||
|
|
||||||
# If asdf changes their ruby version provenance format, update this to match
|
# 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
|
and return
|
||||||
|
|
||||||
set ruby_version $asdf_ruby_version
|
set ruby_version $asdf_ruby_version
|
||||||
|
Loading…
Reference in New Issue
Block a user