prompt: fix tmux window naming on new tmux versions

This commit is contained in:
Martin Sekera 2022-06-08 22:18:35 +02:00
parent f79beba826
commit e5efe0f323

View file

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