]> git.alrj.org Git - zsh.d.git/blob - S10_zshopts
Add a wrapper for mc to stay in current directory upon exit
[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 # Don't highlight pasted text
17 zle_highlight=(paste:none)
18
19 autoload -U zargs
20
21 typeset -ga preexec_functions
22 typeset -ga precmd_functions
23 typeset -ga chpwd_functions
24
25 # use emacs bindings
26 bindkey -e
27 bindkey '\e[1~' beginning-of-line
28
29 [ -w $zsh_cache ] && HISTFILE=$zsh_cache/history
30
31 HISTSIZE=10000              # size of history
32 LISTMAX=1000                # never ask
33 NULLCMD='cat'               # use cat for > null commands
34 REPORTTIME=2                # report time if execution exceeds amount of seconds
35 SAVEHIST=10000              # maximum of history events to be save
36 LOGCHECK=60
37 watch=(notme)               # watch login/logout
38 WORDCHARS="*?_-.[]~/&;!#$%^(){}<>"
39                             # part of word in line editor