Set USER if blank
This commit is contained in:
parent
ed45deb1a9
commit
181e030248
4
.zshrc
4
.zshrc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user