diff options
author | Jeffrey Dileo <jtdileo@gmail.com> | 2012-03-07 07:47:34 -0500 |
---|---|---|
committer | Jeffrey Dileo <jtdileo@gmail.com> | 2012-03-07 07:47:34 -0500 |
commit | c7105a53416866e8315c503546dc5bfe2b9da83f (patch) | |
tree | ee55828db0b935442dc046b308e10db6af7baa2b /lib | |
parent | 1120f973054836eeb53750f57d69fbec41a340dc (diff) | |
download | zsh-c7105a53416866e8315c503546dc5bfe2b9da83f.tar.gz zsh-c7105a53416866e8315c503546dc5bfe2b9da83f.tar.bz2 zsh-c7105a53416866e8315c503546dc5bfe2b9da83f.zip |
Disabled title function for emacs term mode
Diffstat (limited to 'lib')
-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 |