aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-11-22 01:20:38 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-11-22 01:20:38 +0300
commit351dc843204b983214e516142439383457926d84 (patch)
tree7d2c4d3cdff62c6b7c91420458a9ff98ef4aca8d /powerlevel9k.zsh-theme
parent1eadf5ad76d0d9a9a5c4f6e6b2cde47c018363c0 (diff)
Fix for the GO version.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 002267f4..2a791db5 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -317,7 +317,7 @@ prompt_dir() {
# GO-prompt
prompt_go_version() {
local go_version
- go_version=$(go version 2>&1 | grep -oe "^go[0-9.]*")
+ go_version=$(go version 2>&1 | sed -E "s/.*(go[0-9.]*).*/\1/")
if [[ -n "$go_version" ]]; then
"$1_prompt_segment" "$0" "green" "255" "$go_version"