diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..f76a6a7 --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# Installs IntelliJ templates + +echo "Installing template files..." + +find /Applications -path "*.app" -prune \( -name "*Android Studio*" -or -name "*IntelliJ IDEA*" \) -print0 | while read -d $'\0' folder +do + echo "\nInstalling to $folder" + cp -frv $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/MVP* "$folder/Contents/plugins/android/lib/templates/activities/" +done + + +echo "Done." +echo "" +echo "Restart IntelliJ and/or AndroidStudio"