mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
screen.plugin: Respect DISABLE_AUTO_TITLE variable as in core OMZ
This commit is contained in:
parent
c3b072eace
commit
f25edf653f
1 changed files with 7 additions and 4 deletions
|
@ -30,11 +30,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()
|
||||
|
|
Loading…
Reference in a new issue