summaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2012-10-03 21:43:09 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2012-10-04 00:52:53 +0200
commitcd5524466946b5a10c659d5a52d73ce79ce385c4 (patch)
tree9d0d2e4789cb94ba92ec2f383df2cc2d6adde38b /.zsh
parente340e5a3ec154b32050a1c998b7be77f0a3a8328 (diff)
downloaddotfiles-cd5524466946b5a10c659d5a52d73ce79ce385c4.tar.gz
dotfiles-cd5524466946b5a10c659d5a52d73ce79ce385c4.tar.bz2
dotfiles-cd5524466946b5a10c659d5a52d73ce79ce385c4.zip
Force 256 colors all over the place
Diffstat (limited to '')
-rw-r--r--.zsh/zshrc10
1 files changed, 6 insertions, 4 deletions
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