Skip to content

Instantly share code, notes, and snippets.

@Rajin9601
Created June 21, 2020 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rajin9601/2af5cee40247dbd2a9c7234baa6b28b2 to your computer and use it in GitHub Desktop.
Save Rajin9601/2af5cee40247dbd2a9c7234baa6b28b2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Sync Live Templates to repo
BASEDIR=$( cd "$( dirname $0 )" && pwd )
echo "Select Android Studio Directory"
select folder in ~/Library/Preferences/AndroidStudio*;
do test -n "$folder" && break; echo "Invalid Selection"; done
echo "Sync from $folder"
cp $folder/templates/*.xml $BASEDIR/live-templates
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment