mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Merge pull request #359 from fabiomargarido/go-minor-version
This commit is contained in:
commit
ec41294492
@ -851,7 +851,7 @@ function __bobthefish_prompt_golang -S -a real_pwd -d 'Display current Go inform
|
|||||||
set -l actual_go_version "0"
|
set -l actual_go_version "0"
|
||||||
set -l high_enough_version "0"
|
set -l high_enough_version "0"
|
||||||
if type -fq go
|
if type -fq go
|
||||||
set actual_go_version (go version | string match -r 'go version go(\\d+\\.\\d+)' -g)
|
set actual_go_version (go version | string match -r 'go version go(\\d+\\.\\d+(?:\\.\\d+)?)' -g)
|
||||||
if printf "%s\n%s" "$gomod_version" "$actual_go_version" | sort --check=silent --version-sort
|
if printf "%s\n%s" "$gomod_version" "$actual_go_version" | sort --check=silent --version-sort
|
||||||
set high_enough_version "1"
|
set high_enough_version "1"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user