mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
use string builtin rather than tr
This is probably faster and definitely more fish-y
This commit is contained in:
parent
7c28cb0386
commit
03f4dcc309
@ -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
|
else if type -q chruby # chruby is implemented as a function, so omitting the -f is intentional
|
||||||
set ruby_version $RUBY_VERSION
|
set ruby_version $RUBY_VERSION
|
||||||
else if type -fq asdf
|
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user