Last active
December 31, 2015 00:44
-
-
Save Jaesin/5102485449d9702a95bb to your computer and use it in GitHub Desktop.
Install drushes
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 | |
# See: https://packagist.org/packages/drush/drush | |
# Drush 7 (Global) | |
composer global require "drush/drush:7.*" | |
# Drush 6 (Local) | |
mkdir -p /usr/local/share/drush/6.x | |
cd /usr/local/share/drush/6.x | |
composer require "drush/drush:6.*" | |
ln -s /usr/local/share/drush/6.x/vendor/bin/drush /usr/local/bin/drush-6 | |
# Drush 8 (Local) | |
mkdir -p /usr/local/share/drush/8.x | |
cd /usr/local/share/drush/8.x | |
composer require "drush/drush:8.0.1" | |
ln -s /usr/local/share/drush/8.x/vendor/bin/drush /usr/local/bin/drush-8 | |
# Drush 5.10 (/usr/local/share/drush) | |
cd /usr/local/share/drush | |
wget -qO- https://github.com/drush-ops/drush/archive/5.10.0.tar.gz | tar -xzv | |
mv drush-5.10.0 5.x | |
ln -s /usr/local/share/drush/5.x/drush /usr/local/bin/drush-5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment