Skip to content

Instantly share code, notes, and snippets.

@jadark
Forked from gbero/fish_shell_android_home.txt
Created October 9, 2018 02:07
Show Gist options
  • Save jadark/16abcb2a31c0bc076ef35be5d22e9112 to your computer and use it in GitHub Desktop.
Save jadark/16abcb2a31c0bc076ef35be5d22e9112 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