zshrc: always set terminal title BUT ONLY IN SCREEN
This commit is contained in:
parent
263a7451af
commit
205a0c373f
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ if [[ -a "$OVER_PROMPT_CFG" ]]; then
|
|||
fi
|
||||
|
||||
function set_title {
|
||||
if [[ ${TERM} =~ "screen" ]]; then
|
||||
print -Pn "\033k\033${@}\033\134"
|
||||
fi
|
||||
}
|
||||
|
||||
function preexec {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue