- cd ~
- pwd - make sure you are at the right place you expect to be
- Make sure you have a bin directory (chost appears to have this by default)
- curl -sS https://getcomposer.org/installer | php -- --install-dir=bin
- sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
- source $HOME/.bashrc
- Try running composer.phar from any directory - you should see its default output. If not echo $PATH and make sure the correct paths to composer added
The below command can be launched in the ~ directory. Drush (and any other tool you install with composer) are inserted in the .composer/vendor directory (which we added to the path in the f)
- composer.phar global require drush/drush:6.* (see above link for which version to use)