From 7aeaba75cc19f46417a834fbd3cc3f1ee3d41be9 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 21 Aug 2012 14:35:26 +0900 Subject: [PATCH] update __my_ps1_tmux --- bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 99f23f3..9e22028 100755 --- a/bashrc +++ b/bashrc @@ -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 }