Skip to content

Instantly share code, notes, and snippets.

@seasonyuu
seasonyuu / osx-android-studio-set-path.sh
Last active February 17, 2019 16:02 — forked from depressiveRobot/osx-intellij-set-path.sh
Modifies the app package to start Android Studio inside a shell with a custom PATH environment variable
#!/bin/sh
if [ "$#" -lt 2 ]; then
echo "Too few arguments\n"
echo "Usage: $0 'PATH TO ANDROID STUDIO APP' 'PATH_VALUE'" >&2
exit 1
fi
if [ "$#" -gt 2 ]; then
echo "Too many arguments\n"
echo "Usage: $0 'PATH TO ANDROID STUDIO APP' 'PATH_VALUE'" >&2