Only add env vars for existing dirs
This commit is contained in:
parent
7de8cb3ba6
commit
ec871aedab
8
profile
8
profile
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user