From e9f9496d6b17c676d644e6b65e0e82f35141b416 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 29 Apr 2020 16:19:43 -0700 Subject: [PATCH] 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. --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 7033587..9472109 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -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