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