]> git.draconx.ca Git - zshconf.git/blobdiff - zshrc
Fix key bindings for things like xterm-256color.
[zshconf.git] / zshrc
diff --git a/zshrc b/zshrc
index 9878649eb724c943e45d8394effaec0bf5c0d764..7f0df9b58325633da05750e0dbbc746e5ce73feb 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -17,7 +17,7 @@ bindkey -e
 
 case $TERM in
 rxvt*)
-       if [[ $TERM == rxvt-unicode ]]; then
+       if [[ $TERM =~ '^rxvt-unicode' ]]; then
                [[ -z $COLORTERM ]] && export COLORTERM='rxvt-xpm'
                [[ -z $COLORFGBG ]] && export COLORFGBG='15;default;0'
        fi
@@ -26,13 +26,13 @@ rxvt*)
        bindkey '\e[8~' end-of-line
        bindkey '\e[7~' beginning-of-line
 ;;
-screen*|linux)
+screen*|linux|cygwin)
        bindkey '\e[3~' delete-char
        bindkey '\e[4~' end-of-line
        bindkey '\e[1~' beginning-of-line
        bindkey '\eOM'  accept-line
 ;;
-xterm)
+xterm*)
        bindkey '\e[3~' delete-char
        bindkey '\e[F'  end-of-line
        bindkey '\e[H'  beginning-of-line