diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 9c17c01..7e1161a 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -857,7 +857,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" | read __ gomod_version + grep "^go " "$d/go.mod" | read __ gomod_version break end