]> git.alrj.org Git - zsh.d.git/blobdiff - S10_zshopts
Use emacs bindings
[zsh.d.git] / S10_zshopts
index d90bec049111d33265bf5a4ba2a4c6da1625eb06..e382cfc65d7f24b7652c5f8763d095ac25bc4e76 100644 (file)
@@ -12,6 +12,16 @@ typeset -ga preexec_functions
 typeset -ga precmd_functions
 typeset -ga chpwd_functions
 
+# use emacs bindings
+bindkey -e
+
+# This must be done very early.
+clear_psvar() {
+  psvar=()
+}
+precmd_functions+='clear_psvar'
+
+
 [ -w $zsh_cache ] && HISTFILE=$zsh_cache/history
 
 HISTSIZE=10000              # size of history