Skip to content

Instantly share code, notes, and snippets.

@ceceprawiro
Created May 13, 2016 07:33
Show Gist options
  • Save ceceprawiro/7e2efcd3d98b96eb37da880e811ee886 to your computer and use it in GitHub Desktop.
Save ceceprawiro/7e2efcd3d98b96eb37da880e811ee886 to your computer and use it in GitHub Desktop.
Simple script to run Android Studio with Genymotion
#! /bin/sh
use_genimotion=false
while :
do
case "$1" in
-g | --genymotion)
use_genymotion=true
shift 1
;;
--) # End of all options
shift
break;
;;
-*)
echo "Error: Unknown option: $1" >&2
exit 1
;;
*) # No more options
break
;;
esac
done
if [ "$use_genymotion" = true ] ; then
./android-studio/bin/studio.sh &
(sleep 20; kill $! ) &
wait
./genymotion/genymotion
else
./android-studio/bin/studio.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment