From 84de02484fb6ec86c4bdbb5a08b80b94e99512ea Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 5 Oct 2018 14:27:31 -0400 Subject: [PATCH] Add $HOME/.dotfiles to path --- .zshenv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshenv b/.zshenv index ca606b4..539c81b 100644 --- a/.zshenv +++ b/.zshenv @@ -22,6 +22,12 @@ then export PATH="$PATH:$HOME/.bin" fi +# Add $HOME/.dotfiles to PATH if it exists and is not already in the path +if [[ -d "$HOME/.dotfiles" ]] && ! grep -q ":$HOME"'/\.dotfiles\(:\|$\)' <<< "$PATH" +then + export PATH="$PATH:$HOME/.dotfiles" +fi + # Set temporary files locations if [[ ! -d "$TMPDIR" ]] then