]> git.alrj.org Git - zsh.d.git/blob - S10_zshopts
2697a16f3b2d7161281b34d9c1be6962c660af80
[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 setopt prompt_cr            # Newline before prompt when needed
11
12 autoload -U colors
13 colors
14 setopt prompt_subst
15
16 typeset -ga preexec_functions
17 typeset -ga precmd_functions
18 typeset -ga chpwd_functions
19
20 # use emacs bindings
21 bindkey -e
22
23 # This must be done very early.
24 clear_psvar() {
25   psvar=()
26 }
27 precmd_functions+='clear_psvar'
28
29
30 [ -w $zsh_cache ] && HISTFILE=$zsh_cache/history
31
32 HISTSIZE=10000              # size of history
33 LISTMAX=1000                # never ask
34 NULLCMD='cat'               # use cat for > null commands
35 REPORTTIME=2                # report time if execution exceeds amount of seconds
36 SAVEHIST=10000              # maximum of history events to be save
37 LOGCHECK=60
38 watch=(notme)               # watch login/logout
39 WORDCHARS="*?_-.[]~/&;!#$%^(){}<>"
40                             # part of word in line editor