diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2016-02-17 20:41:46 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2016-02-17 20:41:46 +0300 |
commit | 7efc6e41873e6c329f3b66e43ec853a85f0ad5e9 (patch) | |
tree | cea3c94c03b8c3b575a9ef33b018cc12661b6ed7 /powerlevel9k.zsh-theme | |
parent | 3407494d7d0560dfb13c8ecf3e4f1835cb8c3181 (diff) |
Fix go test
If no GO is available, there should be no output.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-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 76ff5497..59733acd 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -471,7 +471,7 @@ prompt_dir() { # GO prompt prompt_go_version() { local go_version - go_version=$(go version 2>&1 | sed -E "s/.*(go[0-9.]*).*/\1/") + go_version=$(go version 2>/dev/null | sed -E "s/.*(go[0-9.]*).*/\1/") if [[ -n "$go_version" ]]; then "$1_prompt_segment" "$0" "$2" "green" "255" "$go_version" |