|
@@ -476,10 +476,10 @@ __my_ps1_scale(){ |
|
|
echo "[LC:${LINES}x${COLUMNS}]" |
|
|
echo "[LC:${LINES}x${COLUMNS}]" |
|
|
return $last |
|
|
return $last |
|
|
} |
|
|
} |
|
|
TMUX_CURRENT="$(__try_exec tmux display -p '#S:#I:#W.#P' 2>/dev/null)" |
|
|
|
|
|
__my_ps1_tmux(){ |
|
|
__my_ps1_tmux(){ |
|
|
local last=$? |
|
|
local last=$? |
|
|
test -n "$TMUX" && echo "[TMUX:$TMUX_CURRENT]" |
|
|
|
|
|
|
|
|
local tmuxc="$(__try_exec tmux display -p '#S:#I:#W.#P' 2>/dev/null)" |
|
|
|
|
|
test -n "$TMUX" && echo "[TMUX:$tmuxc]" |
|
|
return $last |
|
|
return $last |
|
|
} |
|
|
} |
|
|
__my_ps1_moc(){ |
|
|
__my_ps1_moc(){ |
|
|