diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2015-11-25 02:23:03 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2015-11-25 02:23:03 +0300 |
commit | 08a3b49d735b8a0192138085880a47ed89d94971 (patch) | |
tree | be093efea726910b02138ce2d5a234b5a536daf2 | |
parent | 91e9fb865c1611dc08f29a377bfa1b791db945b4 (diff) | |
parent | 351dc843204b983214e516142439383457926d84 (diff) |
Merge pull request #155 from dritter/hotfix/go_version_fix
Fix for the GO segment.
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 362077bb..122dac10 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" |