From 181e030248796707ed2070bc4c57fd1fbe69b3d1 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Tue, 30 Oct 2018 22:47:13 -0700 Subject: [PATCH] Set USER if blank --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index ed5a234..d004747 100644 --- a/.zshrc +++ b/.zshrc @@ -16,6 +16,10 @@ else export DEVPATH="$HOME" fi +if [[ -z "$USER" ]]; then + export USER=$(whoami) +fi + if [[ -d "$DEVPATH/android/android-sdk" ]]; then export ANDROID_SDK="$DEVPATH/android/android-sdk" fi