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 test -n "$ip" && printf $1 $ip
} }


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


Loading…
Cancel
Save