Bash: envvars for macos android
This commit is contained in:
parent
254e31bff0
commit
d4ea4b02de
1 changed files with 19 additions and 0 deletions
|
@ -49,6 +49,25 @@ if [[ -f /usr/share/nvm/init-nvm.sh ]]; then
|
|||
source /usr/share/nvm/init-nvm.sh
|
||||
fi
|
||||
|
||||
# macOS homebrew
|
||||
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
|
||||
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"
|
||||
|
||||
# Android development ===============================================
|
||||
if [[ -d "$HOME/Android/Sdk" ]]; then
|
||||
export ANDROID_HOME="$HOME/Android/Sdk"
|
||||
export PATH="$PATH:$ANDROID_HOME/emulator"
|
||||
export PATH="$PATH:$ANDROID_HOME/platform-tools"
|
||||
fi
|
||||
|
||||
if [[ -d "/Users/${USER}/Library/Android/sdk" ]]; then
|
||||
export ANDROID_HOME="/Users/${USER}/Library/Android/sdk"
|
||||
export PATH="$PATH:$ANDROID_HOME/emulator"
|
||||
export PATH="$PATH:$ANDROID_HOME/platform-tools"
|
||||
|
||||
export JAVA_HOME='/Applications/Android Studio.app/Contents/jbr/Contents/Home'
|
||||
fi
|
||||
|
||||
# Swayland ==========================================================
|
||||
if [[ "$(uname -s)" == "Linux" ]] && pidof sway &>/dev/null; then
|
||||
export WAYLAND_DISPLAY=wayland-1
|
||||
|
|
Loading…
Reference in a new issue