diff options
author | Robby Russell <robby@planetargon.com> | 2012-06-13 13:20:42 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-06-13 13:20:42 -0700 |
commit | f60244f8f447613b3f68a047bcc235733d71dd4f (patch) | |
tree | 38235ae239e44f7ab50b2975ad8e4e3b8b882719 /lib/termsupport.zsh | |
parent | 7bb27448735e2a8d710eca9f0dc0ecf37185f403 (diff) | |
parent | c7105a53416866e8315c503546dc5bfe2b9da83f (diff) | |
download | zsh-f60244f8f447613b3f68a047bcc235733d71dd4f.tar.gz zsh-f60244f8f447613b3f68a047bcc235733d71dd4f.tar.bz2 zsh-f60244f8f447613b3f68a047bcc235733d71dd4f.zip |
Merge pull request #999 from ChaosData/master
Auto title now disabled in emacs term mode
Diffstat (limited to 'lib/termsupport.zsh')
-rw-r--r-- | lib/termsupport.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 221989502..e26fef6d3 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -3,7 +3,9 @@ #Fully support screen, iterm, and probably most modern xterm and rxvt #Limited support for Apple Terminal (Terminal can't set window or tab separately) function title { - [ "$DISABLE_AUTO_TITLE" != "true" ] || return + if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then + return + fi if [[ "$TERM" == screen* ]]; then print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then |