]> git.alrj.org Git - zsh.d.git/blob - S10_zshopts
Ensure that psvar is empty for all the precmd.
[zsh.d.git] / S10_zshopts
1 #! /usr/bin/zsh
2
3 if test -x =dircolors; then
4   eval "`dircolors`"
5   export ZLS_COLORS=$LS_COLORS
6 fi
7
8 setopt auto_cd
9 setopt nobeep
10
11 typeset -ga preexec_functions
12 typeset -ga precmd_functions
13 typeset -ga chpwd_functions
14
15 # This must be done very early.
16 clear_psvar() {
17   psvar=()
18 }
19 precmd_functions+='clear_psvar'
20
21
22 [ -w $zsh_cache ] && HISTFILE=$zsh_cache/history
23
24 HISTSIZE=10000              # size of history
25 LISTMAX=1000                # never ask
26 NULLCMD='cat'               # use cat for > null commands
27 REPORTTIME=2                # report time if execution exceeds amount of seconds
28 SAVEHIST=10000              # maximum of history events to be save
29 LOGCHECK=60
30 watch=(notme)               # watch login/logout
31 WORDCHARS="*?_-.[]~/&;!#$%^(){}<>"
32                             # part of word in line editor