Skip to content

Instantly share code, notes, and snippets.

@ivopr
Last active April 16, 2024 02:56
Show Gist options
  • Save ivopr/3f2ee281cd38e66dc1a4d1344154b715 to your computer and use it in GitHub Desktop.
Save ivopr/3f2ee281cd38e66dc1a4d1344154b715 to your computer and use it in GitHub Desktop.

So, you have installed Android Studio, and is setting it up for react native, buuuut you're new to fish and it seems like it doesn't have a .bashrc or .zshrc equivalent.

worry not, just run the following, in order:

Set the ANDROID_HOME variable, here the U will make it persist through restarts, and the x will make it be exported:

set -Ux ANDROID_HOME $HOME/Android/Sdk

And now, you can append the Android Studio folders to your PATH:

set -U fish_user_paths $ANDROID_HOME/emulator $fish_user_paths
set -U fish_user_paths $ANDROID_HOME/tools $fish_user_paths
set -U fish_user_paths $ANDROID_HOME/tools-bin $fish_user_paths
set -U fish_user_paths $ANDROID_HOME/platform-tools $fish_user_paths

This is it! Now you should be ready to go.

@marcus-deans
Copy link

marcus-deans commented Jul 7, 2023

Thanks for this! For me was set -Ux ANDROID_HOME $HOME/Library/Android/sdk

@lamualfa
Copy link

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment