|
@@ -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 |
|
|
} |
|
|
} |
|
|