Better greping

pull/327/head
Sean Patrick Hagen 2 years ago
parent 20eb30bf4f
commit 69e58a2f68
No known key found for this signature in database
GPG Key ID: 618FC6E1C001EE4F

@ -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…
Cancel
Save