dot/zshrc: Interpret `**' to cover files too, where sensible.
[profile] / dot / zshrc
index 8ee287a..2bf2413 100644 (file)
--- a/dot/zshrc
+++ b/dot/zshrc
@@ -18,6 +18,7 @@ __mdw_set_prompt_hacks () {
       ;;
   esac
   host=%m dir=" %(6~!%-1~/.../%5~!%~)"
+  more=%F{green}%_%f
 }
 
 if [ -t 0 ]; then
@@ -30,6 +31,8 @@ fi
 ###--------------------------------------------------------------------------
 ### Line editing.
 
+case $TERM in dumb) unsetopt zle ;; esac
+
 bindkey -e
 
 for w in \
@@ -59,8 +62,8 @@ bindkey "\et" transpose-words-bash
 bindkey "\e^t" transpose-words-shell
 bindkey "\eu" up-case-word-bash
 bindkey "\e^u" up-case-word-shell
-bindkey "\el" up-case-word-bash
-bindkey "\e^l" up-case-word-shell
+bindkey "\el" down-case-word-bash
+bindkey "\e^l" down-case-word-shell
 bindkey "\ec" capitalize-word-bash
 bindkey "\e^c" capitalize-word-shell
 
@@ -115,26 +118,24 @@ SAVEHIST=1000
 
 unsetopt auto_cd
 unsetopt auto_menu
+setopt bang_hist
 unsetopt bash_auto_list
 unsetopt beep
 setopt extendedglob
 unsetopt flow_control
+setopt glob_star_short
 setopt hist_ignore_all_dups
+setopt hist_ignore_space
 setopt ksh_glob
 setopt list_ambiguous
 setopt list_packed
+setopt multios
 unsetopt nomatch
 unsetopt menu_complete
 setopt notify
+setopt rc_expand_param
 setopt share_history
 
-zshaddhistory () {
-  case "$1" in
-    " "*) return 2 ;;
-    *) return 0 ;;
-  esac
-}
-
 ###--------------------------------------------------------------------------
 ### Finishing touches.