remove leading "go" from go_version

pull/93/head
romkatv 2019-06-17 23:38:00 +02:00
parent 31fdb6797e
commit 7678930639
1 changed files with 1 additions and 1 deletions

View File

@ -947,7 +947,7 @@ prompt_go_version() {
_p9k_cached_cmd_stdout go version || return
emulate -L zsh && setopt extendedglob
local -a match
[[ $_P9K_RETVAL == (#b)*(go[[:digit:].]##)* ]] || return
[[ $_P9K_RETVAL == (#b)*go([[:digit:].]##)* ]] || return
local v=$match[1]
local p=$GOPATH
if [[ -z $p ]]; then