From 7efc6e41873e6c329f3b66e43ec853a85f0ad5e9 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Wed, 17 Feb 2016 18:41:46 +0100 Subject: [PATCH] Fix go test If no GO is available, there should be no output. --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"