blob: 6edcdb677841521dbb059d5cfec96c77abe32107 (
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
# History settings
setopt histignorealldups sharehistory
HISTFILE=$HOME/.zsh_history
SAVEHIST=$((1 << 12))
HISTSIZE=$((1 << 10))
# Set a SHLVL-derived value that takes tmux into account. This is used to show
# the current SHLVL in the prompt
if [[ -n $TMUX && -z $TMUX_SHLVL ]] ; then
TMUX_SHLVL=$((SHLVL - 1))
export TMUX_SHLVL
fi
# Load POSIX shell startup files and then Bash-specific ones
for sh in "$ENV" "$HOME"/.zshrc.d/*.zsh ; do
[[ -e $sh ]] && source "$sh"
done
unset -v sh
|