diff options
Diffstat (limited to '')
-rw-r--r-- | .zsh/zshrc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |