Diff
1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index 726cdce415057a8f3a12aa056b2b3eaba7d43e53..ff61d53295d17ad67eb3c387322e541fd00902e9 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -7,6 +7,7 @@
6 # (In screen, only short_tab_title is used)
7 # Limited support for Apple Terminal (Terminal can't set window and tab separately)
8 function title {
9+ emulate -L zsh
10 [[ "$EMACS" == *term* ]] && return
11
12 # if $2 is unset use $1 as default
13@@ -26,6 +27,7 @@ ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
14
15 # Runs before showing the prompt
16 function omz_termsupport_precmd {
17+ emulate -L zsh
18 if [[ $DISABLE_AUTO_TITLE == true ]]; then
19 return
20 fi
21@@ -35,11 +37,11 @@ function omz_termsupport_precmd {
22
23 # Runs before executing the command
24 function omz_termsupport_preexec {
25+ emulate -L zsh
26 if [[ $DISABLE_AUTO_TITLE == true ]]; then
27 return
28 fi
29
30- emulate -L zsh
31 setopt extended_glob
32
33 # cmd name only, or if this is sudo or ssh, the next cmd
34@@ -61,6 +63,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
35
36 # Emits the control sequence to notify Terminal.app of the cwd
37 function update_terminalapp_cwd() {
38+ emulate -L zsh
39 # Identify the directory using a "file:" scheme URL, including
40 # the host name to disambiguate local vs. remote paths.
41