From 03f4dcc30927fc5eec3ac3ac3e9f976179d07ea5 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 30 Apr 2020 13:00:06 -0700 Subject: [PATCH] use string builtin rather than tr This is probably faster and definitely more fish-y --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 1d367c0..b2069ef 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -777,7 +777,7 @@ function __bobthefish_prompt_rubies -S -d 'Display current Ruby information' else if type -q chruby # chruby is implemented as a function, so omitting the -f is intentional set ruby_version $RUBY_VERSION else if type -fq asdf - asdf current ruby 2>/dev/null | tr -s " " | read -l asdf_ruby_version asdf_provenance + asdf current ruby 2>/dev/null | string trim - l | read -l asdf_ruby_version asdf_provenance or return # If asdf changes their ruby version provenance format, update this to match