- /Users/myusername/drush
(I like to keep my apps together, so I put my drush directory in /Users/myusername/drush)
- get drush from here: GitHub repo
https://github.com/drush-ops/drush
https://github.com/drush-ops/drush/releases
- In terminal run these commands:
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/bin/composer
- from the drush directory run
$ composer install
-
See below if your PHP version is too low and you get PHP related errors
-
Check by running in terminal >composer (this will list all of composer’s commands)
Update your bash path
$ vim ~/.bash_profile
or
$ vim ~/.zshrc
add this line:
export PATH=$PATH:/Users/myusername/drush
export PATH="$HOME/drush:$PATH"
and
$ source ~/.bash_profile
or
$ source ~/.zshrc
$ ln -s /Users/myusername/drush/drush /usr/bin/drush
0r
$ cd /usr/local/bin
$ ln -s /Users/myusername/drush/drush
ALL DONE, Enjoy!