aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc
blob: 30e7173b4fff0fcd76a4880020a4de819279be72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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` and `type`.  Ignore output, as older Zsh seems not to implement this
# (quelle surprise).
unalias -a >/dev/null 2>&1

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

# Emacs keybindings even if EDITOR is vi(1)
bindkey -e

# History settings
setopt histignorealldups sharehistory
HISTFILE=$HOME/.zsh_history
SAVEHIST=4096

# Load Zsh-specific startup files
for zsh in "$HOME"/.zshrc.d/*.zsh(N) ; do
    [[ -e $zsh ]] || continue
    source "$zsh"
done
unset -v zsh