Makes zshrc source environment variables if not already set

This commit is contained in:
Jonathan Hodgson 2020-03-30 17:55:25 +01:00
parent 493715156f
commit 2c11d9db0a

View file

@ -5,6 +5,8 @@ autoload -U colors && colors
# Make sure we are using vi mode
bindkey -v
[ -z "$DOTFILES" ] && source ~/.dotfiles/shells/shared/environmentVariables
# History in cache directory:
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
setopt SHARE_HISTORY # Share history between all sessions.