Skip to content

Instantly share code, notes, and snippets.

@xurizaemon
Created April 23, 2012 01:10
Show Gist options
  • Save xurizaemon/2467973 to your computer and use it in GitHub Desktop.
Save xurizaemon/2467973 to your computer and use it in GitHub Desktop.
auto-load aliases from ~aegir/.drushrc/ for every developer on a machine
<?php
/**
* Aegir user has lots of aliases. Let's load for developers too.
*/
global $aliases;
foreach(glob('/var/aegir/.drush/*alias.drushrc.php') as $aegir_alias) {
require_once($aegir_alias);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment