Drush is an incredibly powerful tool for working with Drupal sites, and if you're not using it to your full advantage, you're almost certainly missing out. However, Drush has so much functionality that may not be immediately apparent that it's likely that we're all missing out on ways it could help our workflow.
Drush can run on a site even when it's not your working directory through the use of Drush aliases. That alone could speed up work on local sites, but you can use multiple aliases for the same site including details for connecting to remote environments over SSH!
Let's get set up.
Aliases are defined using a simple config file. In ~/.drushrc/ you can create a file with a name of this pattern:
... where <sitename> is your site alias name. That's whatever you want to refer to the site by. Inside this file, you'll want this as a base: