Drush lets us set up configuration files that modify how it works system-wide, user-wide, or site-wide. These files are named drushrc.php
and contain a list of array options. With a configuration file, we can do things such as the following:
Set the
--uri
and--root
options to be added to every command that we execute from the root path of a multisite Drupal installationAutomatically check for Drush updates
Load additional site alias files located in a given directory
Specify where to store database dumps, which tables to ignore completely, and which one's data to ignore
Always display verbose information on each command
Add options when a specific command is executed
Override elements of the
variables
table of a site
Drush will look for configuration files in the following locations (extracted from drush topic docs-configuration):
Next to a
settings.php
file of a Drupal site. For example, atsites/default/drushrc.php
orsites/drupal.localhost/drushrc.php
.The root directory...