Last active
August 29, 2015 14:07
-
-
Save aaronott/29d6cf72b8719fcd0122 to your computer and use it in GitHub Desktop.
Quickly install latest drush globally with composer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
# This assumes that composer is already installed | |
sudo mkdir -p /usr/share/composer \ | |
&& sudo composer -vvv global require drush/drush:dev-master --working-dir=/usr/share/composer \ | |
&& sudo ln -s /usr/share/composer/vendor/drush/drush/drush /usr/local/bin/drush |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run it fast with