Browse Source

update __my_ps1_tmux

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

+ 2
- 1
bashrc View File

@@ -557,7 +557,8 @@ __my_ps1_scale(){
} }
__my_ps1_tmux(){ __my_ps1_tmux(){
local last=$? local last=$?
local tmuxc="$(__try_exec tmux display -p '#S:#I:#W.#P' 2>/dev/null)"
null type tmux || return $last
local tmuxc="$(tmux display -p '#S:#I:#W.#P' 2>/dev/null)"
test -n "$TMUX" && echo "[TMUX:$tmuxc]" test -n "$TMUX" && echo "[TMUX:$tmuxc]"
return $last return $last
} }


Loading…
Cancel
Save