diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-05-21 16:46:09 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-05-21 16:46:09 +0300 |
commit | 0eef01d97f9ee38aadcd16d361a6866b1f004103 (patch) | |
tree | 866cebca8b98236334762e3e4a06252858bab82b /powerlevel9k.zsh-theme | |
parent | ee8a1b940fbed7500d71d0313a8c0288509adf7c (diff) |
cleanup
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 2ce66144..c7bec43b 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -999,7 +999,7 @@ prompt_go_version() { _p9k_cached_cmd_stdout go version || return emulate -L zsh && setopt extendedglob local -a match - [[ $_P9K_RETVAL == (#b)*(go[0-9.]##)* ]] || return + [[ $_P9K_RETVAL == (#b)*(go[[:digit:].]##)* ]] || return local v=$match[1] local p=${GOPATH:-$(go env GOPATH 2>/dev/null)} [[ -n $p && $PWD/ == $p/* ]] || return @@ -1295,7 +1295,7 @@ prompt_php_version() { _p9k_cached_cmd_stdout php --version || return emulate -L zsh && setopt extendedglob local -a match - [[ $_P9K_RETVAL == (#b)(*$'\n')#(PHP [0-9.]##)* ]] || return + [[ $_P9K_RETVAL == (#b)(*$'\n')#(PHP [[:digit:].]##)* ]] || return local v=$match[2] "$1_prompt_segment" "$0" "$2" "fuchsia" "grey93" '' 0 '' "${v//\%/%%}" } |