Not quite sure where this should go between Drubuntu, Drush Extras, and Drush itself. When running drubuntu-site-add or site-install, we have a perfect moment to automatically create a site alias. This is not always the case with site-install, but drubuntu-site-add itself has very predictable, standard site aliasing defaults it could roll with.

In Drubuntu terms, I envision using the "site.platform" as the alias name, and creating a platform.aliases.drushrc.php file. Not quite sure where the best location would be, possibly an aliases folder in $HOME/.drush. I hesitate to place it under ~/workspace to avoid cluttering the workspace.

If this were a general purpose alias automation routine, options for site-install like so:

  • --alias-path: Alias location
  • --alias-file: Alias filename
  • --alias-name: Name of the alias for the current site. Defaults to --sites-subdir.

I feel as though I heard or read about this idea before, but google fails me.