From e73742e6f49d9cbdf52fa185044315ede7e6753c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 3 Jan 2017 15:22:12 +1300 Subject: Fix up zshrc a bit * Move ENV sourcing further up * Don't set HISTSIZE, .shrc does that * Correct copypasta comment from bashrc --- zsh/zshrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'zsh') diff --git a/zsh/zshrc b/zsh/zshrc index 2376e568..b6b2b514 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,14 +1,16 @@ # Emacs keybindings even if EDITOR is vi(1) bindkey -e +# If ENV is set, source it to get all the POSIX-compatible interactive stuff +[[ -n $ENV ]] && . "$ENV" + # History settings setopt histignorealldups sharehistory HISTFILE=$HOME/.zsh_history SAVEHIST=$((1 << 12)) -HISTSIZE=$((1 << 10)) -# Load POSIX shell startup files and then Bash-specific ones -for sh in "$ENV" "$HOME"/.zshrc.d/*.zsh ; do +# Load Zsh-specific startup files +for sh in "$HOME"/.zshrc.d/*.zsh ; do [[ -e $sh ]] && source "$sh" done unset -v sh -- cgit v1.2.3