Set USER if blank

This commit is contained in:
Kevin Cotugno 2018-10-30 22:47:13 -07:00
parent ed45deb1a9
commit 181e030248

4
.zshrc
View File

@ -16,6 +16,10 @@ else
export DEVPATH="$HOME" export DEVPATH="$HOME"
fi fi
if [[ -z "$USER" ]]; then
export USER=$(whoami)
fi
if [[ -d "$DEVPATH/android/android-sdk" ]]; then if [[ -d "$DEVPATH/android/android-sdk" ]]; then
export ANDROID_SDK="$DEVPATH/android/android-sdk" export ANDROID_SDK="$DEVPATH/android/android-sdk"
fi fi