aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2013-03-27 17:26:25 -0400
committerRyan Kavanagh <rak@debian.org>2013-03-27 17:26:25 -0400
commit8560e037bf9d0e51b550d88a04ed039c86d4ec19 (patch)
tree7849af5813407bd6cc5c28da6b29958097ee284b /.zshrc
parentUpdate tmux-powerlinerc according to my changes upstream (diff)
Let's hope we finally got precmd/preexec working...
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index dd2bc78..eb86e8e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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
}