f60244f8f447613b3f68a047bcc235733d71dd4f
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #999 from ChaosData/master
Auto title now disabled in 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