瀏覽代碼

supress errormesg when tmux is not running

pull/1/head
10sr 12 年之前
父節點
當前提交
0f1344befd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bashrc

+ 1
- 1
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]"


Loading…
取消
儲存