Skip to content

Instantly share code, notes, and snippets.

@ericsala
Forked from gbero/fish_shell_android_home.txt
Created September 3, 2018 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericsala/f05178bbac7bc06e250419d81c511124 to your computer and use it in GitHub Desktop.
Save ericsala/f05178bbac7bc06e250419d81c511124 to your computer and use it in GitHub Desktop.
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 --export JAVA_HOME /Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home;
set -gx PATH $JAVA_HOME/bin $PATH;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment