summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.screenrc1
-rw-r--r--.zsh/zshrc10
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