From 14a6f2b317661e959e13a23870cf89274f867f12 Mon Sep 17 00:00:00 2001 From: Shane Mook <614347+smook1980@users.noreply.github.com> Date: Tue, 5 Apr 2022 12:16:16 -0500 Subject: [PATCH] Update ruby asdf support for output of asdf v0.8.1 (#305) - asdf not output three columns for for `asdf current version`, the first being the plugin name - Update the provenance format to match --- functions/fish_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 4549b63..331bc5b 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -830,10 +830,10 @@ function __bobthefish_prompt_rubies -S -d 'Display current Ruby information' set -l asdf_current_ruby (asdf current ruby 2>/dev/null) or return - echo "$asdf_current_ruby" | read -l asdf_ruby_version asdf_provenance + echo "$asdf_current_ruby" | read -l _asdf_plugin asdf_ruby_version asdf_provenance # If asdf changes their ruby version provenance format, update this to match - [ (string trim -- "$asdf_provenance") = "(set by $HOME/.tool-versions)" ] + [ (string trim -- "$asdf_provenance") = "$HOME/.tool-versions" ] and return set ruby_version $asdf_ruby_version