summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-04-27 22:09:35 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2020-04-27 22:09:35 +0000
commit17f4742d93dad339b097f45e20738afe6cc34671 (patch)
tree34d6901a3e54f386083a6d283d6baee30c8d2602
parent15ee42f435885f3f82de772ac542695841208482 (diff)
zsh/prompt_bmc_setup: prevent warnings from vcs_info
Older versions of zsh attempt to run the command "git rev-parse --show-toplevel". This used to fail silently if in a bare repository, but in recent versions of Git, it prints an error. If we have an older version of zsh and a newer version of Git, don't print the error message to the user if we're in a bare repo. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
-rw-r--r--zsh/functions/prompt_bmc_setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/functions/prompt_bmc_setup b/zsh/functions/prompt_bmc_setup
index 2fd1cb3..34ddf49 100644
--- a/zsh/functions/prompt_bmc_setup
+++ b/zsh/functions/prompt_bmc_setup
@@ -139,7 +139,7 @@ prompt_bmc_precmd () {
psvar[4]="($(bmc_palette tty)$SHLVL$c_reset)";;
esac
- prompt_bmc_need_refresh && command -v vcs_info >/dev/null 2>&1 && vcs_info
+ prompt_bmc_need_refresh && command -v vcs_info >/dev/null 2>&1 && vcs_info 2>/dev/null
}
prompt_bmc_need_refresh () {