diff options
author | Robby Russell <robby@planetargon.com> | 2015-08-12 21:12:21 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-08-12 21:12:21 -0700 |
commit | f6a2b973565618272d39491d5d1a350d453cf062 (patch) | |
tree | eb22f22c20dd1d98b7e61fb38e5e811b30d9450c /lib | |
parent | 45d640baee42953fe1f749fad7c195823e64c67e (diff) | |
parent | 90ea67edf0982923f82905d87bda5b685089f219 (diff) | |
download | zsh-f6a2b973565618272d39491d5d1a350d453cf062.tar.gz zsh-f6a2b973565618272d39491d5d1a350d453cf062.tar.bz2 zsh-f6a2b973565618272d39491d5d1a350d453cf062.zip |
Merge pull request #4203 from apjanke/title-protect-promptsubst
termsupport: protect title() with `emulate -L zsh` for portability
Diffstat (limited to 'lib')
-rw-r--r-- | lib/termsupport.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index d667861ab..f4a996552 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -7,6 +7,9 @@ # (In screen, only short_tab_title is used) # Limited support for Apple Terminal (Terminal can't set window and tab separately) function title { + emulate -L zsh + setopt prompt_subst + [[ "$EMACS" == *term* ]] && return # if $2 is unset use $1 as default |