Browse Source

supress errormesg when tmux is not running

pull/1/head
10sr 12 years ago
parent
commit
0f1344befd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bashrc

+ 1
- 1
bashrc View File

@@ -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]"


Loading…
Cancel
Save