mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2026-03-02 03:49:25 +00:00
fix: apply bobthecow's builtin instead of sed
This commit is contained in:
@@ -853,7 +853,7 @@ function __bobthefish_prompt_golang -S -a real_pwd -d 'Display current Go inform
|
|||||||
set -l d $real_pwd
|
set -l d $real_pwd
|
||||||
while not [ -z "$d" ]
|
while not [ -z "$d" ]
|
||||||
if [ -e $d/go.mod ]
|
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
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user