summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-04-27 22:08:26 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2020-04-27 22:08:26 +0000
commit15ee42f435885f3f82de772ac542695841208482 (patch)
tree153379c86604509d04ebb9b6d665e882b1f2ca76
parent99b785e8385cbe4d22e5317f11e8a5e6f8812674 (diff)
zsh/prompt_bmc_setup: ignore warning from tmux
If we upgrade tmux, it can sometimes print warning messages to standard error. Don't print this message on every prompt; just ignore it instead. 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 3c9fe9c..2fd1cb3 100644
--- a/zsh/functions/prompt_bmc_setup
+++ b/zsh/functions/prompt_bmc_setup
@@ -112,7 +112,7 @@ prompt_bmc_precmd () {
fi
local curstatus
- [[ -n $TMUX ]] && curstatus="$(tmux display-message -p '#W')"
+ [[ -n $TMUX ]] && curstatus="$(tmux display-message -p '#W' 2>/dev/null)"
# Update prompt unless the title starts with a ZWSP (U+200B) or colon.
local zwsp="$(printf '\342\200\213')"