Skip to content

Instantly share code, notes, and snippets.

@brockboland
Created April 11, 2011 00:35
Show Gist options
  • Save brockboland/912901 to your computer and use it in GitHub Desktop.
Save brockboland/912901 to your computer and use it in GitHub Desktop.
Bash function to clone a Drupal module or theme. Add this to your .bash_profile
# Clone a drupal project
function drupalclone {
if [ -z "$1" ]
then
# No parameter passed, show usage
echo "Usage: drupalclone [project_name]"
else
# Clone the project
git clone http://git.drupal.org/project/$1.git
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment