From 5fcd638c50fbe3bd2c30444552ccd6be82eca54e Mon Sep 17 00:00:00 2001 From: Alec Lanter Date: Sun, 1 Mar 2026 08:41:57 -0600 Subject: [PATCH] fix: apply bobthecow's builtin instead of sed --- functions/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 06fe066..22cb9ea 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -853,7 +853,7 @@ function __bobthefish_prompt_golang -S -a real_pwd -d 'Display current Go inform set -l d $real_pwd while not [ -z "$d" ] if [ -e $d/go.mod ] - grep "^go " "$d/go.mod" | sed 's/\r//' | read __ gomod_version + string match -rq '^go\s(?\S+)' < "$d/go.mod" break end