Only add env vars for existing dirs

This commit is contained in:
Kevin Cotugno 2017-10-19 22:54:42 -07:00
parent 7de8cb3ba6
commit ec871aedab

View File

@ -1,4 +1,6 @@
export DEVPATH=$HOME/dev if [[ -d "$HOME/dev" ]]; then
export DEVPATH="$HOME/dev"
fi
if [[ -n "$(echo $SHELL | grep zsh)" ]]; then if [[ -n "$(echo $SHELL | grep zsh)" ]]; then
export ZSH=$HOME/.oh-my-zsh export ZSH=$HOME/.oh-my-zsh
@ -24,8 +26,8 @@ if [[ -d "$DEVPATH/android/android-ndk" ]]; then
fi fi
which go &> /dev/null which go &> /dev/null
if (( !$? )); then if (( !$? )) && [[ -d "$DEVPATH/go" ]]; then
export GOPATH=$DEVPATH/go export GOPATH="$DEVPATH/go"
fi fi
function passgen () { function passgen () {