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