mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2026-03-02 03:49:25 +00:00
fix: CRLF line endings break Go version display
- add sed inline to gomod_version read to edit out '\r' characters which cause issues with display of go version
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
|
||||
grep "^go " "$d/go.mod" | sed 's/\r//' | read __ gomod_version
|
||||
break
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user