prompt: improve tmux compatibility (2/2)

This commit is contained in:
Martin Sekera 2022-01-31 14:23:12 +01:00
parent dd76c7123b
commit 4490d2690d

View file

@ -9,12 +9,14 @@ if [[ -a "$OVER_PROMPT_CFG" ]]; then
fi
# emits garbage on tmux, where it's not really needed anyway
if [[ ! -n "$TMUX" ]]; then
if [[ -n "$TMUX" ]]; then
function __over_prompt_set_title {
if [[ ${TERM} =~ "screen" ]]; then
print -Pn "\033k\033${@}\033\134"
fi
}
else
function __over_prompt_set_title { }
fi
function __over_prompt_preexec {