c7105a53416866e8315c503546dc5bfe2b9da83f

Author
Jeffrey Dileo <jtdileo@gmail.com>
Committer
Jeffrey Dileo <jtdileo@gmail.com>
Date

Message

Disabled title function for emacs term mode

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index 221989502360e4182d14489765578b5ee9ff5491..e26fef6d30d8a3f46e1fa4862c20626815743891 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -3,7 +3,9 @@
 6 #Fully support screen, iterm, and probably most modern xterm and rxvt
 7 #Limited support for Apple Terminal (Terminal can't set window or tab separately)
 8 function title {
 9-  [ "$DISABLE_AUTO_TITLE" != "true" ] || return
10+  if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then
11+    return
12+  fi
13   if [[ "$TERM" == screen* ]]; then
14     print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
15   elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then