diff options
author | Ryan Kavanagh <rak@debian.org> | 2013-03-19 14:28:14 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2013-03-19 14:31:37 -0400 |
commit | 8a4999bf8c33d7df58fb9610ca91f10d0ddd224d (patch) | |
tree | 24d588e1936091255fae0564fcbe7b50918f6d31 | |
parent | Make awk script generating msmtp aliases in Makefile portable (diff) |
Make zsh play nice with tmux
Diffstat (limited to '')
-rw-r--r-- | .zshrc | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -355,8 +355,10 @@ precmd() { case $TERM in *xterm*|rxvt*) print -Pn "]2;%n@%m:%~\a" ;; - screen*) print -Pn "\"%n@%m:%~\134" - ;; + # Don't execute if we're in TMUX + screen*) + [[ -n ${TMUX} ]] || print -Pn "\"%n@%m:%~\134" + ;; esac } @@ -365,10 +367,10 @@ preexec() { # [[ -t 1 ]] || return case $TERM in *xterm*|rxvt*) - print -Pn "]2;$1\a" - ;; - screen*) - print -Pn "\"$1\134" + print -Pn "]2;$1\a" + ;; + screen*) + [[ -n ${TMUX} ]] || print -Pn "\"$1\134" ;; esac } |