Skip to content

Instantly share code, notes, and snippets.

@aaronott
Last active August 29, 2015 14:07
Show Gist options
  • Save aaronott/29d6cf72b8719fcd0122 to your computer and use it in GitHub Desktop.
Save aaronott/29d6cf72b8719fcd0122 to your computer and use it in GitHub Desktop.
Quickly install latest drush globally with composer
#!/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
@sanguis
Copy link

sanguis commented Nov 20, 2014

run it fast with

curl https://gist.githubusercontent.com/aaronott/29d6cf72b8719fcd0122/raw/74c264635c046c5f3b267890c7abd013038ca890/install_drush_globally | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment