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/9e90976679a461f69361a6a80703db8f to your computer and use it in GitHub Desktop.
Save Rajin9601/9e90976679a461f69361a6a80703db8f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Install Live Templates
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 "Installing to $folder"
cp $BASEDIR/live-templates/*.xml $folder/templates
echo "Done."
echo ""
echo "Restart AndroidStudio"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment