Skip to content

Instantly share code, notes, and snippets.

@lrobeson
Last active December 22, 2015 10:08
Show Gist options
  • Save lrobeson/6456372 to your computer and use it in GitHub Desktop.
Save lrobeson/6456372 to your computer and use it in GitHub Desktop.
Bash alias to prepare a cloned Drupal 7 site that doesn't include files directory or settings.php
# create settings.php, file directories, set permissions, and return to site root
alias prepare-d7-site="cd sites/default && cp default.settings.php settings.php && chmod a+w settings.php && mkdir files && chmod a+w files && mkdir private && mkdir tmp && chmod a+w private && chmod a+w tmp && cd .. && cd .."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment