diff options
author | Jason Hutchinson <zikes@zikes.me> | 2017-04-13 01:09:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 01:09:23 +0300 |
commit | 21d8fc63780f6046267ef9d4c1df46de2eac9913 (patch) | |
tree | f2946c38d6dd2a9a67fe6d0f1327704f084db4da /powerlevel9k.zsh-theme | |
parent | f140104e4a6cbe419f957c761884d279dbcfeb8a (diff) |
Redirect stderr for GOPATH check to /dev/null
Accounts for instances where `go` binary is not installed.
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 09ce6b3d..73dedcf6 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -746,7 +746,7 @@ prompt_go_version() { local go_version local go_path go_version=$(go version 2>/dev/null | sed -E "s/.*(go[0-9.]*).*/\1/") - go_path=$(go env GOPATH) + go_path=$(go env GOPATH 2>/dev/null) if [[ -n "$go_version" && "${PWD##$go_path}" != "$PWD" ]]; then "$1_prompt_segment" "$0" "$2" "green" "255" "$go_version" |