diff options
author | Ryan Kavanagh <rak@debian.org> | 2013-03-27 17:26:25 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2013-03-27 17:26:25 -0400 |
commit | 8560e037bf9d0e51b550d88a04ed039c86d4ec19 (patch) | |
tree | 7849af5813407bd6cc5c28da6b29958097ee284b /.zsh | |
parent | Update tmux-powerlinerc according to my changes upstream (diff) |
Let's hope we finally got precmd/preexec working...
Diffstat (limited to '')
-rw-r--r-- | .zshrc | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -352,8 +352,10 @@ bindkey '\e[6~' down-history # PageDown precmd() { # [[ -t 1 ]] || return case $TERM in - *xterm*|rxvt*|screen*) print -Pn "\e]2;%n@%m:%~\a" - ;; + *xterm*|rxvt*) print -Pn "\e]2;%n@%m:%~\a" + ;; + screen*) print -Pn "\ek%n@%m:%~\a" + ;; esac } @@ -361,8 +363,10 @@ precmd() { preexec() { # [[ -t 1 ]] || return case $TERM in - *xterm*|rxvt*|screen*) print -Pn "\e]2;$1\a" - ;; + *xterm*|rxvt*) print -Pn "\e]2;$1\a" + ;; + screen*) print -Pn "\ek$1\a" + ;; esac } |