Add $HOME/.dotfiles to path

This commit is contained in:
Adam Goldsmith 2018-10-05 14:27:31 -04:00
parent 8cb7895bdf
commit 84de02484f

View File

@ -22,6 +22,12 @@ then
export PATH="$PATH:$HOME/.bin" export PATH="$PATH:$HOME/.bin"
fi 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 # Set temporary files locations
if [[ ! -d "$TMPDIR" ]] if [[ ! -d "$TMPDIR" ]]
then then