From 0f1344befd395caa2033f80a0ece40becbad1467 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 21 Aug 2012 20:14:24 +0900 Subject: [PATCH] supress errormesg when tmux is not running --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 905952f..0812fe7 100755 --- a/bashrc +++ b/bashrc @@ -469,7 +469,7 @@ ip-address(){ test -n "$ip" && printf $1 $ip } -TMUX_CURRENT="$(__try_exec tmux display -p '#S:#I:#W.#P')" +TMUX_CURRENT="$(__try_exec tmux display -p '#S:#I:#W.#P' 2>/dev/null)" __my_ps1_tmux(){ local last=$? test -n "$TMUX" && echo "[TMUX:$TMUX_CURRENT]"