diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-03 15:22:12 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-03 15:22:20 +1300 |
commit | e73742e6f49d9cbdf52fa185044315ede7e6753c (patch) | |
tree | 7d548f9f329db777f6c120fd939e35ddff37697d | |
parent | Short-circuit in rbash before even loading ENV (diff) | |
download | dotfiles-e73742e6f49d9cbdf52fa185044315ede7e6753c.tar.gz dotfiles-e73742e6f49d9cbdf52fa185044315ede7e6753c.zip |
Fix up zshrc a bit
* Move ENV sourcing further up
* Don't set HISTSIZE, .shrc does that
* Correct copypasta comment from bashrc
-rw-r--r-- | zsh/zshrc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |