Skip to content

Instantly share code, notes, and snippets.

@scor
Last active December 30, 2015 14:39
Show Gist options
  • Select an option

  • Save scor/7843568 to your computer and use it in GitHub Desktop.

Select an option

Save scor/7843568 to your computer and use it in GitHub Desktop.
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