Skip to content

Instantly share code, notes, and snippets.

@neworld
Created September 22, 2016 08:34
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neworld/245316ddae0fd779060401107be78e8f to your computer and use it in GitHub Desktop.
Save neworld/245316ddae0fd779060401107be78e8f to your computer and use it in GitHub Desktop.
#!/bin/sh
# Copy templates to Android Studio in default location
TMP_PATH=`pwd`
TEMPLATES_PATH="/Applications/Android Studio.app/Contents/plugins/android/lib/templates/other"
DIRS=`find $TMP_PATH -type d -maxdepth 1 -not -name '.*' -not -path $TMP_PATH`
for f in $DIRS
do
DIR=$(basename $f)
DEST=$TEMPLATES_PATH/$DIR
rm -r -f "$DEST"
cp -r "$f" "$TEMPLATES_PATH"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment