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
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
;;
esac
+# Keymap-specific bindings
+case $KEYMAP in
+colemak)
+ bindkey '^R' history-incremental-search-forward
+ bindkey '^P' history-incremental-search-backward
+ ;;
+esac
+
# Set the xterm title
case $TERM in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)