Skip to content

Instantly share code, notes, and snippets.

@davereid
Created July 1, 2014 20:06
Show Gist options
  • Save davereid/5be00cb29c509ee3e64e to your computer and use it in GitHub Desktop.
Save davereid/5be00cb29c509ee3e64e to your computer and use it in GitHub Desktop.
Getting Acquia to load the /drush/drushrc.php for site checkouts.
<?php
// ~/.drush/drushrc.php
if ($root = drush_get_option('root')) {
$drush_dir = str_replace('/docroot', '/drush', $root);
if (is_file($drush_dir . '/drushrc.php')) {
$options['config'] = $drush_dir . '/drushrc.php';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment