From 7c2d90152eb6a2f319c3927fa11adb7763f2ea6f Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sat, 2 May 2020 08:29:34 -0700 Subject: [PATCH] Handle whitespace in asdf system ruby detection. Fixes #250 --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 7033587..42071d1 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)" ] + [ (string trim -- "$asdf_provenance") = "(set by $HOME/.tool-versions)" ] and return set ruby_version $asdf_ruby_version