myconfig

my config files
git clone https://a3nm.net/git/myconfig/
Log | Files | Refs | README

commit 05d27a79219980df388abdd8e75dd713071e8bbb
parent 8492a0a39abbec1f41d957cdf64bf3424ae8c9e3
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 28 Feb 2016 10:17:22 +0100

fix rxvt title with 256color

Diffstat:
zsh/zshrc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zsh/zshrc b/zsh/zshrc @@ -99,7 +99,7 @@ bindkey '^_' undo preexec () { local WD="$(pwd | sed "s/^\/home\/$USER/~/")" export LASTDATE="`date +%T`" - if [[ "$TERM" == "rxvt-unicode" ]]; then + if [[ "$TERM" == "rxvt-unicode" || "$TERM" == "rxvt-unicode-256color" ]]; then export COMMAND="$(echo $1 | tr -d '\n')" echo -ne "\e]0;$LOCALNAME $HOST:$WD$ $COMMAND ($LASTDATE)\a" #echo -ne "\e]0;$LOCALNAME $HOST:$WD$ TODO ($LASTDATE)\a"