This repository is intended for OS X users only and sets your dotfiles, so that your terminal is optimised for the Drupal CMS.
You can clone the repository wherever you want. (I like to keep it in ~/Projects/drupal_dotfiles
, with ~/drupal_dotfiles
as a symlink.) The bootstrapper script will pull in the latest version and copy the files to your home folder.
git clone https://github.com/willembressers/drupal_dotfiles.git && cd drupal_dotfiles && source bootstrap.sh
To update, cd
into your local drupal_dotfiles
repository and then:
source bootstrap.sh
Alternatively, to update while avoiding the confirmation prompt:
set -- -f; source bootstrap.sh
Add an .bash_extra
file to your home folder where you can make it more personal.
This file is ignored from the repository so that you can personalize your Terminal.
#!/usr/bin/env bash
# Default settings.
DRUPAL_ROOT="$HOME/Sites/d7"
MYSQL_USER="root"
MYSQL_PASS="password"
ADMIN_USER="root"
ADMIN_EMAIL="mail@example.com"
ADMIN_PASS="password"
Alias | Argument | Descriptions |
---|---|---|
d7 |
site folder | cd into the Drupal root folder, argument is optional and cd into the multisite. |
as |
site_name | Add a new multisite |
rs |
site_name | Remove an existing multisite |
ap |
site_name, project_name | Add a new project |
rp |
site_name, project_name | Remove an existing project |
tp |
project_name | Local simpletest, Creates multisite, downloads and enables the project, and opens it. |