diff --git a/plugins/screen/screen.plugin.zsh b/plugins/screen/screen.plugin.zsh index 375d8750a..a479fbd65 100644 --- a/plugins/screen/screen.plugin.zsh +++ b/plugins/screen/screen.plugin.zsh @@ -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()