Skip to content

Instantly share code, notes, and snippets.

@scor
Last active December 30, 2015 14:39
Automatically install Drush 7 (only tested on Mac OS X)
#!/bin/bash
#
# Install Drush 7 from https://github.com/drush-ops/drush.git
# and creates a 'drush7' alias. Execute this from your terminal:
# bash <(curl -s https://gist.github.com/scor/7843568/raw/install-drush7.sh)
if [[ ! -e '~/tools/drush7' ]]; then
mkdir -p ~/tools
cd ~/tools
git clone https://github.com/drush-ops/drush.git drush7
echo "alias drush7=~/tools/drush7/drush" >> ~/.bash_profile
echo "A new alias 'drush7' was created for you in ~/.bash_profile. Please open a new terminal to start using it."
else
echo "It seems you already have drush7 downloaded at ~/tools/drush7"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment