mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-30 08:44:41 +00:00
remove leading "go" from go_version
This commit is contained in:
+1
-1
@@ -947,7 +947,7 @@ prompt_go_version() {
|
|||||||
_p9k_cached_cmd_stdout go version || return
|
_p9k_cached_cmd_stdout go version || return
|
||||||
emulate -L zsh && setopt extendedglob
|
emulate -L zsh && setopt extendedglob
|
||||||
local -a match
|
local -a match
|
||||||
[[ $_P9K_RETVAL == (#b)*(go[[:digit:].]##)* ]] || return
|
[[ $_P9K_RETVAL == (#b)*go([[:digit:].]##)* ]] || return
|
||||||
local v=$match[1]
|
local v=$match[1]
|
||||||
local p=$GOPATH
|
local p=$GOPATH
|
||||||
if [[ -z $p ]]; then
|
if [[ -z $p ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user