Setting up drush to work on your local bash shell

  1. Open a bash terminal
  2. Create a .drush folder mkdir ~/.drush
  3. cd ~/.drush
  4. git clone https://github.com/drush-ops/drush.git #to get latest drush codebase from GitHub
  5. ln -s ~/.drush/drush/drush ~/bin/drush #So you can run drush as a local command. Create bin folder if doesn't exist

That's it!

Additional notes:

  • you can switch drush versions (execute inside ~/.drush/drush, for example git checkout 5.x to use Drush v5 instead

  • install composer library if you need Drush v7 (I also have a guide for that)

Need my help? Contact Marcky on twitter @marcrobinsone