aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc
blob: 68f8ffc72ed5f3a6183838b858a1669bd0be1289 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Emacs keybindings even if EDITOR is vi(1)
bindkey -e

# Clear away all aliases; we do this here rather than in $ENV because the ksh
# family of shells relies on aliases to implement certain POSIX utilities like
# fc(1) and type(1)
unalias -a

# If ENV is set, source it to get all the POSIX-compatible interactive stuff
[[ -n $ENV ]] && source "$ENV"

# History settings
setopt histignorealldups sharehistory
HISTFILE=$HOME/.zsh_history
SAVEHIST=$((1 << 12))

# Load Zsh-specific startup files
for sh in "$HOME"/.zshrc.d/*.zsh ; do
    [[ -e $sh ]] && source "$sh"
done
unset -v sh