curl -sS https://getcomposer.org/installer | php7
Das alles in die .bashrc
alias php5cli='/usr/local/bin/php5-56LATEST-CLI'
alias composer='php5cli ~/composer.phar'
alias php='/usr/local/bin/php5-56LATEST-CLI'
export DRUSH_PHP=/usr/local/bin/php5-56LATEST-CLI
alias drush='php5cli ~/.composer/vendor/bin/drush'
und dann:
composer global require drush/drush:dev-master
danach source .bashrc damit die neue config auch geladen wird.
mkdir ~/bin cd ~/bin
2.) Symlink dort drin auf PHP5
Code:
ln -s /usr/local/bin/php5-55STABLE-CLI ./php
3.) In der .bashrc ~/bin in $PATH exportieren
Code:
export PATH=~/bin/:$PATH