X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S10_zshopts;h=c4c3b6c4281d5d570e2a6609b550b34953e8a7e7;hp=4f3c2f8486271c96627588cf64462b6b52ca3cb0;hb=b4cf91ff70ffc80c2d781bbc30ef796220d2dcde;hpb=7233001b1aed9a30e46c8e4162d4a8b8abfc3d9a diff --git a/S10_zshopts b/S10_zshopts index 4f3c2f8..c4c3b6c 100644 --- a/S10_zshopts +++ b/S10_zshopts @@ -8,10 +8,22 @@ 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 -psvar=() + +# 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