Updating to Drush 7 on OSX I had a working drush 5.6 (manually installed) on OSX (Yosemite) and decided I wanted to upgrade to the latest drush 7 version. I ended up with version 6.0-dev.

I followed the installation isntructions and decided to use homebrew to install composer and drush. So far so good, but the thing is, I can't seem to get to the latest "master" dev version: I'm stuck on 6.0-dev.

I tried different ways like:

brew install --HEAD drush
brew switch drush HEAD


and:

composer global require drush/drush:dev-master
composer global update


My composer.json looks like this:

{
    "require": {
        "drush/drush": "dev-master"
    }
}


which drush:

/usr/local/bin/drush


drush status:

 PHP executable        :  /usr/bin/php                             
 PHP configuration     :                                           
 PHP OS                :  Darwin                                   
 Drush version         :  6.0-dev                                  
 Drush configuration   :                                           
 Drush alias files     :  /Users/albert/.drush/aliases.drushrc.php 


Any ideas?
You should add to your ~/.bashrc file the additional PATH, e.g.:

# Add a Composer's global bin directory if exists.
which composer &gt;/dev/null &amp;&amp; export PATH="$HOME/.composer/vendor/bin:$PATH"


It should come first before your other drush. See my full .bashrc for details (bash4 syntax).



Alternatively install drush by specifying COMPOSER_BIN_DIR, like:

COMPOSER_BIN_DIR=/usr/local/bin composer global require drush/drush:dev-master


Assuming that /usr/local/bin is already in your PATH.