fix: apply bobthecow's builtin instead of sed

This commit is contained in:
Alec Lanter
2026-03-01 08:41:57 -06:00
parent e9e4adb946
commit 5fcd638c50

View File

@@ -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(?<gomod_version>\S+)' < "$d/go.mod"
break
end