From d59fb09c3126db97a3d8244f9579328b804ec0fb Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 7 Sep 2022 19:40:06 +0100 Subject: [PATCH] Uses dynamic paths for Android SDK path --- zsh/.zshenv | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zsh/.zshenv b/zsh/.zshenv index a918c54..58749d2 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -48,10 +48,10 @@ if [ "$(uname -s)" = "Darwin" ] && [[ -d /opt/homebrew/bin ]]; then fi # And Android SDK to path, if within Library direcroty -if [ "$(uname -s)" = "Darwin" ] && [[ -d ~/Library/Android/ ]]; then - export PATH="/Users/alicia/Library/Android/sdk/emulator:${PATH}" - export ANDROID_HOME="~/Library/Android/sdk" - export ANDROID_SDK_ROOT="~/Library/Android/sdk" - export ANDROID_AVD_HOME="~/.android/avd" - export NODE_BINARY=node +if [ "$(uname -s)" = "Darwin" ] && [[ -d "${HOME}/Library/Android/" ]]; then + export PATH="${HOME}/Library/Android/sdk/emulator:${PATH}" + export ANDROID_HOME="${HOME}/Library/Android/sdk" + export ANDROID_SDK_ROOT="${HOME}/Library/Android/sdk" + export ANDROID_AVD_HOME="${ANDROID_SDK_ROOT}/tools/emulator" + export NODE_BINARY="/usr/local/bin/node" fi