X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S10_zshopts;h=7da5e3fcb50880c6fe5feb77d5a3d3d7811cb722;hp=e382cfc65d7f24b7652c5f8763d095ac25bc4e76;hb=HEAD;hpb=6a03b8bc9e40adf0e6fadfcf3743c3cc746ba69b diff --git a/S10_zshopts b/S10_zshopts index e382cfc..7da5e3f 100644 --- a/S10_zshopts +++ b/S10_zshopts @@ -7,6 +7,16 @@ fi setopt auto_cd setopt nobeep +setopt prompt_cr # Newline before prompt when needed + +autoload -U colors +colors +setopt prompt_subst + +# Don't highlight pasted text +zle_highlight=(paste:none) + +autoload -U zargs typeset -ga preexec_functions typeset -ga precmd_functions @@ -14,13 +24,7 @@ typeset -ga chpwd_functions # use emacs bindings bindkey -e - -# This must be done very early. -clear_psvar() { - psvar=() -} -precmd_functions+='clear_psvar' - +bindkey '\e[1~' beginning-of-line [ -w $zsh_cache ] && HISTFILE=$zsh_cache/history