From cd5524466946b5a10c659d5a52d73ce79ce385c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 3 Oct 2012 21:43:09 +0200 Subject: Force 256 colors all over the place --- .screenrc | 1 + .zsh/zshrc | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.screenrc b/.screenrc index 84e3287..1f0d31f 100644 --- a/.screenrc +++ b/.screenrc @@ -1,4 +1,5 @@ defflow off +term screen-256color hardstatus alwayslastline hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]' diff --git a/.zsh/zshrc b/.zsh/zshrc index 3dc9bc4..f8f9967 100644 --- a/.zsh/zshrc +++ b/.zsh/zshrc @@ -138,7 +138,7 @@ colors RPROMPT="%(?.%S%{$fg[green]%}:).%S%{$fg[red]%}:()%{$reset_color%}%s" # Screen indication -[[ $TERM == "screen" ]] && RPROMPT="${RPROMPT} %B%{$fg[cyan]%}(S #$WINDOW)%{$reset_color%}%b" +[[ $TERM == "screen*" ]] && RPROMPT="${RPROMPT} %B%{$fg[cyan]%}(S #$WINDOW)%{$reset_color%}%b" # vcs stuff for prompt setopt prompt_subst @@ -172,15 +172,17 @@ fi ################################################# autoload promptnl case $TERM in -xterm*|rxvt*|Eterm) +xterm*) precmd() { echo -ne "\033]0;${USER}@$(hostname):${PWD/$HOME/~}\007"; promptnl vcs_info } + # force xterm 256 + TERM=xterm-256color ;; -screen) +screen*) precmd() { echo -ne "\033_${USER}@$(hostname):${PWD/$HOME/~}\033\\"; @@ -216,7 +218,7 @@ for word c in sudo s vim v AK a; do done case $TERM in - xterm*|aterm|rxvt) + xterm*) bindkey "^[OH" beginning-of-line bindkey "^[OF" end-of-line bindkey "^[[3~" delete-char -- cgit v1.2.3