Browse Source

update __my_ps1_tmux

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

+ 2
- 1
bashrc View File

@@ -454,11 +454,12 @@ ip-address(){
test -n "$ip" && printf $1 $ip
}

TMUX_CURRENT=$(tmux display -p '#S:#I:#W.#P')
__my_ps1_tmux(){
local last=$?
if test -n "$TMUX"
then
echo "[TMUX:$TMUX_PANE]"
echo "[TMUX:$TMUX_CURRENT]"
fi
return $last
}


Loading…
Cancel
Save