1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00
This commit is contained in:
cono 2024-09-23 13:08:45 +03:00 committed by GitHub
commit 024d3ebf4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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()