summaryrefslogtreecommitdiff
path: root/lib/termsupport.zsh
diff options
context:
space:
mode:
authorPeter Tillemans <pti@snamellit.com>2012-06-18 10:45:07 +0200
committerPeter Tillemans <pti@snamellit.com>2012-06-18 10:45:07 +0200
commit8b69c7f6a0c80c1c53505e17d356387b83e18efc (patch)
treec76fc91c12ef4f1ecc52f888a92c3472f8ae8c55 /lib/termsupport.zsh
parent3f42fd000c2110ec8647d341cb69a31ebbbe9b4e (diff)
parente8d582aba98d57214a374bed01570ba791c54d9e (diff)
downloadzsh-8b69c7f6a0c80c1c53505e17d356387b83e18efc.tar.gz
zsh-8b69c7f6a0c80c1c53505e17d356387b83e18efc.tar.bz2
zsh-8b69c7f6a0c80c1c53505e17d356387b83e18efc.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'lib/termsupport.zsh')
-rw-r--r--lib/termsupport.zsh4
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