X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S10_zshopts;h=c4c3b6c4281d5d570e2a6609b550b34953e8a7e7;hp=d90bec049111d33265bf5a4ba2a4c6da1625eb06;hb=f4c19f9d51cd05cb465aba57c336ebe8334013fc;hpb=e808d77ed363e89fbf07e57e8cfd8608b5bfa2ef diff --git a/S10_zshopts b/S10_zshopts index d90bec0..c4c3b6c 100644 --- a/S10_zshopts +++ b/S10_zshopts @@ -8,10 +8,24 @@ fi setopt auto_cd setopt nobeep +autoload -U colors +colors +setopt prompt_subst + 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