Provides drush aliases, and customized functions
If you don't yet have the .bashrc file in your windows user folder (eg. C:\Users\Your Username), create it, and copy the contents of windows/.bashrc from this repo in there.
If you already have a (customized) windows/.bashrc file, copy the contents of .bashrc and paste it at the end of your current .bashrc file.
If you don't yet have the .bash_profile file in your root folder, create it (sudo nano ~/.bash_profile
), and copy the contents of mac/.bash_profile from this repo in there.
If you already have a (customized) .bash_profile file, copy the contents of mac/.bash_profile and paste it at the end of your current .bash_profile file.
If you already have your console open, be sure to restart it.
Alias | Drush Equivalent | What it does |
---|---|---|
dr |
drush [drush command] | Basic drush call |
en |
drush en [module] -y | Enables a module eg. en diff |
dis |
drush dis [module] -y | Disables a module eg. dis diff |
lft |
drush features | Provides a list of features, and shows their status |
rstdef |
resets your settings.php file (Run from drupal site root) | |
endev |
Enables common development modules (diff, field_ui, coffee, devel) | |
disdev |
Opposite of "endev" | |
cca |
drush cc all | Clears all cache |
praise_drupal |
Just for fun (prints the drupal logo to your console) |
Function | Drush Equivalent | What it does |
---|---|---|
dr_cmk |
drush make [makefile.make] -y | Executes the make command (also clears the contrib modules withouth prompt) |
dr_reinstall |
Reinstalls your site (requires mysql command to work)(Run from drupal site root) | |
dr_mk |
drush make [makefile.make] -y | Executes the make command (also asks to clear the contrib modules) |
dr_mkp |
drush make --projects="[project]" --no-core "[makefile.make]" -y | Makes a specific project (module) from a build file |
dr_mkl |
drush make --libraries="[project]" --no-core "[makefile.make]" -y | Makes a specific library from a build file |
Tested succesfully on Windows 7/8, Ubuntu 14.04.2 LTS and Mac 10.9/10.10 OSX
Note that some commands might have different results on different platforms
Tested succesfully in Gitbash, Console2, Terminal and iTerm2 Does not work in the default windows cmd