Setting up drush to work on your local bash shell
- Open a bash terminal
- Create a .drush folder
mkdir ~/.drush
cd ~/.drush
git clone https://github.com/drush-ops/drush.git
#to get latest drush codebase from GitHubln -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 examplegit 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