Last active
September 27, 2017 09:53
-
-
Save fedir/06d53382c0e75b993452 to your computer and use it in GitHub Desktop.
Install Drush wth Composer in Shell :)
This file contains hidden or 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
cd ~/ | |
curl -sS https://getcomposer.org/installer | php | |
php composer.phar require drush/drush:7.* | |
alias drush="bash ~/vendor/drush/drush/drush" | |
echo 'alias drush="bash ~/vendor/drush/drush/drush"' >> ~/.bash_aliases | |
echo 'alias drush="bash ~/vendor/drush/drush/drush"' >> ~/.profile | |
echo 'alias drush="bash ~/vendor/drush/drush/drush"' >> ~/.bash_aliases | |
source ~/.bash_aliases | |
drush | |
cd your.drupal.install/ | |
drush @none dl registry_rebuild-7.x |
This file contains hidden or 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 | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
composer global require drush/drush:8.* | |
echo 'alias drush="php ~/.config/composer/vendor/drush/drush/drush"' >> ~/.bash_aliases | |
echo 'alias drush="php ~/.config/composer/vendor/drush/drush/drush"' >> ~/.profile | |
echo 'alias drush="php ~/.config/composer/vendor/drush/drush/drush' >> ~/.bash_aliases |
This file contains hidden or 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 | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
composer global require drush/drush | |
composer global require drush/drush:7.1 | |
# Following line could be added into .bashrc | |
alias drush="~/.composer/vendor/bin/drush" |
This file contains hidden or 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
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
composer global require drush/drush | |
echo 'alias drush="~/.composer/vendor/bin/drush"' >> ~/.bash_aliases | |
echo 'alias drush="~/.composer/vendor/bin/drush"' >> ~/.profile | |
echo 'alias drush="bash ~/.composer/vendor/bin/drush"' >> ~/.bash_aliases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment