Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Export $ANDROID_HOME on MacOS with Fish shell
First :
$ touch ~/.config/fish/config.fish; nano ~/.config/fish/config.fish
Copy this in the file :
set --export ANDROID $HOME/Library/Android;
set --export ANDROID_HOME $ANDROID/sdk;
set -gx PATH $ANDROID_HOME/tools $PATH;
set -gx PATH $ANDROID_HOME/tools/bin $PATH;
set -gx PATH $ANDROID_HOME/platform-tools $PATH;
set -gx PATH $ANDROID_HOME/emulator $PATH
set --export JAVA_HOME /Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home;
set -gx PATH $JAVA_HOME/bin $PATH;
@Arelav

This comment has been minimized.

Copy link

@Arelav Arelav commented Feb 11, 2019

Better emulator path. Add after line 11
set -gx PATH $ANDROID_HOME/emulator $PATH

@mlg87

This comment has been minimized.

Copy link

@mlg87 mlg87 commented Mar 14, 2019

👍

@ivopauly

This comment has been minimized.

Copy link

@ivopauly ivopauly commented Jan 16, 2020

Thanks!

@gbero

This comment has been minimized.

Copy link
Owner Author

@gbero gbero commented Jan 16, 2020

Better emulator path. Add after line 11
set -gx PATH $ANDROID_HOME/emulator $PATH

Updated, thanks! 👍

@SedrK

This comment has been minimized.

Copy link

@SedrK SedrK commented Feb 14, 2020

👍

@hoomanist

This comment has been minimized.

Copy link

@hoomanist hoomanist commented May 6, 2020

tnx useful

@kjmczk

This comment has been minimized.

Copy link

@kjmczk kjmczk commented Oct 24, 2020

👍

@kgstaley

This comment has been minimized.

Copy link

@kgstaley kgstaley commented Nov 18, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.