こういう具合のlaunchctlで読む用のplistを書いておいて、launchctl load
してやるとよいっぽい。
いちいち全部の環境でsetupするのめんどくさいのでこんな具合で簡単に入るようにした。 launchctlの仕様よく分かってないのでなんか間違ってるかも。
curl -fsSL -o $HOME/Library/LaunchAgents/karupanerura.startup.android-studio.plist https://gist.githubusercontent.com/karupanerura/2bcf574f2ea514c92393/raw/78808e08270bb5fd23e79b81d4f8d52f8b617846/karupanerura.startup.android-studio.plist launchctl load $HOME/Library/LaunchAgents/karupanerura.startup.android-studio.plist
参考:
http://qiita.com/neiraza/items/fdde2f922daa47b85bcd
java - Android Studio was unable to find a valid Jvm (Related to MAC OS) - Stack Overflow