diff options
author | Sébastien M-B <essembeh@gmail.com> | 2012-06-27 00:12:55 +0200 |
---|---|---|
committer | Sébastien M-B <essembeh@gmail.com> | 2012-06-27 00:12:55 +0200 |
commit | 8d23a3611086e9a13e7ad754c57fa8cc4797bfa9 (patch) | |
tree | b521e91a17b715259ed31ffa163f9254f8b546a8 /lib/termsupport.zsh | |
parent | 18cb11903f8208403a0ba5a8f2ece1a0bd4ef9a3 (diff) | |
parent | 29fb24487cce4e61bdc24a9a0308f04a739a3d1f (diff) | |
download | zsh-8d23a3611086e9a13e7ad754c57fa8cc4797bfa9.tar.gz zsh-8d23a3611086e9a13e7ad754c57fa8cc4797bfa9.tar.bz2 zsh-8d23a3611086e9a13e7ad754c57fa8cc4797bfa9.zip |
Merge branch 'master' of github.com:essembeh/oh-my-zsh
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 |