zshrc: always set terminal title BUT ONLY IN SCREEN

This commit is contained in:
Martinez 2016-04-26 17:31:12 +02:00
parent 263a7451af
commit 205a0c373f

View file

@ -7,7 +7,9 @@ if [[ -a "$OVER_PROMPT_CFG" ]]; then
fi
function set_title {
print -Pn "\033k\033${@}\033\134"
if [[ ${TERM} =~ "screen" ]]; then
print -Pn "\033k\033${@}\033\134"
fi
}
function preexec {