mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2026-03-02 03:49:25 +00:00
Merge pull request #380 from kintar/master
Resolve broken Golang version display when go.mod includes CRLF line endings
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
|
||||
while not [ -z "$d" ]
|
||||
if [ -e $d/go.mod ]
|
||||
grep "^go " "$d/go.mod" | read __ gomod_version
|
||||
string match -rq '^go\s(?<gomod_version>\S+)' < "$d/go.mod"
|
||||
break
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user