This commit is contained in:
cono 2025-01-20 13:02:31 +02:00 committed by GitHub
commit 26374f93bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -34,11 +34,14 @@ if [[ "$TERM" == screen* ]]; then
# tell GNU screen what the tab window title ($1) and the hardstatus($2) should be
function screen_set()
{
# set the tab window title (%t) for screen
print -nR $'\033k'$1$'\033'\\\
# set hardstatus of tab window (%h) for screen
print -nR $'\033]0;'$2$'\a'
if [[ "$DISABLE_AUTO_TITLE" == true ]]; then
return
fi
# set the tab window title (%t) for screen
print -nR $'\033k'$1$'\033'\\\
}
# called by zsh before executing a command
function preexec()