]> git.draconx.ca Git - zshconf.git/blobdiff - zshrc
Add bindings for cygwin.
[zshconf.git] / zshrc
diff --git a/zshrc b/zshrc
index dbe140157a0b9ed73a8681a70e5c6fdfdefc1a33..caf5805b784d1ece8818f10f3c693294ea648699 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -9,9 +9,9 @@
 
 if [[ -n $HOME ]]; then
        HISTFILE=$HOME/.zsh_history
-       SAVEHIST=1000
+       SAVEHIST=10000
 fi
-HISTSIZE=1000
+HISTSIZE=10000
 
 bindkey -e
 
@@ -26,10 +26,11 @@ 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)
        bindkey '\e[3~' delete-char
@@ -45,6 +46,14 @@ cons25)
 ;;
 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*)
@@ -90,8 +99,8 @@ fi
 export LANG=en_CA.UTF-8
 export LC_COLLATE=ja_JP.UTF-8
 
-# I like colours
-alias ls='ls --color=auto'
+# Default options for various utilities.
+alias ls='ls --time-style=long-iso --color=auto'
 alias grep='grep --color=auto'
 
 # I hate mistakes