Skip to content

Instantly share code, notes, and snippets.

View sebastianwestberg's full-sized avatar

Sebastian Westberg sebastianwestberg

View GitHub Profile
@sebastianwestberg
sebastianwestberg / new-drupal-dev-vm.sh
Last active January 23, 2017 23:43 — forked from rgoodie/new-drupal-dev-vm.sh
A function, when added to bash profile, clones the Vagrant Drupal-Dev-VM (https://github.com/geerlingguy/drupal-dev-vm), augments configuration (based on d7 or d8), renames the VM to something other than drupaltest.dev and starts vagrant up. Uses include <newd 7 my-drupal-site> and <newd 8 my-other-drupal-site>.
# new drupal vagrant install
# a function, when added to bash profile, clones the vagrant drupal-dev-vm (https://github.com/geerlingguy/drupal-dev-vm),
# augments config (based on d7 or d8), renames the vm to something other than drupalvm.dev and starts vagrant up. uses
# include <newd 7 my-drupal-site> and <newd 8 my-other-drupal-site>.
function newd {
if [ -z "$2" ]; then
echo 'usage: newd <version> <sitename>'