1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index 178e6351b20b7380c654dbf92358947e71d31bcd..6271725a28bc252c578a20abe36b07d8728938dc 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -36,14 +36,15 @@ function title {
6 ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD
7 ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
8 # Avoid duplication of directory in terminals with independent dir display
9-if [[ $TERM_PROGRAM == Apple_Terminal ]]; then
10+if [[ "$TERM_PROGRAM" == Apple_Terminal ]]; then
11 ZSH_THEME_TERM_TITLE_IDLE="%n@%m"
12 fi
1314 # Runs before showing the prompt
15 function omz_termsupport_precmd {
16 emulate -L zsh
17- if [[ $DISABLE_AUTO_TITLE == true ]]; then
18+
19+ if [[ "$DISABLE_AUTO_TITLE" == true ]]; then
20 return
21 fi
2223@@ -53,12 +54,12 @@ function omz_termsupport_precmd {
24 # Runs before executing the command
25 function omz_termsupport_preexec {
26 emulate -L zsh
27- if [[ $DISABLE_AUTO_TITLE == true ]]; then
28+ setopt extended_glob
29+
30+ if [[ "$DISABLE_AUTO_TITLE" == true ]]; then
31 return
32 fi
3334- setopt extended_glob
35-
36 # cmd name only, or if this is sudo or ssh, the next cmd
37 local CMD=${1[(wr)^(*=*|sudo|ssh|mosh|rake|-*)]:gs/%/%%}
38 local LINE="${2:gs/%/%%}"