From 2c11d9db0a890662714bbe479fd24f9b6b694ee7 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 30 Mar 2020 17:55:25 +0100 Subject: [PATCH] Makes zshrc source environment variables if not already set --- shells/zsh/STOW/.zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shells/zsh/STOW/.zshrc b/shells/zsh/STOW/.zshrc index 5a80ad01..29667dec 100644 --- a/shells/zsh/STOW/.zshrc +++ b/shells/zsh/STOW/.zshrc @@ -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.