mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Better greping
This commit is contained in:
parent
20eb30bf4f
commit
69e58a2f68
@ -865,7 +865,7 @@ function __bobthefish_prompt_golang -S -d 'Display current Go information'
|
||||
|
||||
if test -f "$gomod_file"
|
||||
set found_gomod 1
|
||||
cat "$gomod_file" | grep "^go\ " | read _gomod gomod_version
|
||||
grep "^go\ " "$gomod_file" | read __ gomod_version
|
||||
break
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user