Skip to content

Commit

Permalink
Merge pull request ohmyzsh#999 from ChaosData/master
Browse files Browse the repository at this point in the history
Auto title now disabled in emacs term mode
  • Loading branch information
robbyrussell committed Jun 13, 2012
2 parents 7bb2744 + c7105a5 commit f60244f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/termsupport.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f60244f

Please sign in to comment.