mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2026-03-02 03:49:25 +00:00
Better greping
This commit is contained in:
@@ -865,7 +865,7 @@ function __bobthefish_prompt_golang -S -d 'Display current Go information'
|
|||||||
|
|
||||||
if test -f "$gomod_file"
|
if test -f "$gomod_file"
|
||||||
set found_gomod 1
|
set found_gomod 1
|
||||||
cat "$gomod_file" | grep "^go\ " | read _gomod gomod_version
|
grep "^go\ " "$gomod_file" | read __ gomod_version
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user