prompt: fix tmux window naming on new tmux versions
This commit is contained in:
parent
f79beba826
commit
e5efe0f323
1 changed files with 1 additions and 2 deletions
|
@ -9,8 +9,7 @@ if [[ -a "$OVER_PROMPT_CFG" ]]; then
|
|||
source "$OVER_PROMPT_CFG"
|
||||
fi
|
||||
|
||||
# both tmux and screen set TERM=screen
|
||||
if [[ "${TERM}" == "screen" ]]; then
|
||||
if [[ "${TERM}" == "screen" || "${TERM:0:4}" == "tmux" ]]; then
|
||||
function __over_prompt_set_title {
|
||||
if [[ -n "${OVER_PROMPT_TITLE}" ]]; then
|
||||
print -Pn "\033k${OVER_PROMPT_TITLE}\033\134"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue