aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2016-02-18 02:39:55 +0300
committerBen Hilburn <bhilburn@gmail.com>2016-02-18 02:39:55 +0300
commit64d81a2b36a705bbfe5be49e45695b059fa6a16a (patch)
tree589662162c57ef5bc14e709da8e62212168a3709 /powerlevel9k.zsh-theme
parent2d196fa12ffcd579ea310ad676aac9af51e360b2 (diff)
parent7efc6e41873e6c329f3b66e43ec853a85f0ad5e9 (diff)
Merge pull request #212 from dritter/unit_testing
Adding Unit Tests, supported by Travis-CI
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 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"