aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-03 15:22:12 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-03 15:22:20 +1300
commite73742e6f49d9cbdf52fa185044315ede7e6753c (patch)
tree7d548f9f329db777f6c120fd939e35ddff37697d /zsh
parentShort-circuit in rbash before even loading ENV (diff)
downloaddotfiles-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
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc8
1 files changed, 5 insertions, 3 deletions
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