Macos – Symlink to the latest version formula directory in Homebrew

homebrewmacos

I'm kinda just starting with OS X and Homebrew, yet I find it very useful. However I have one problem: is there a way to make Homebrew automatically create a symlink to the directory of the latest version of a formula? For example, after installing gradle we have

/usr/local/Cellar/gradle/1.6

and it would be very handy (for external configurations) to have also something like

/usr/local/Cellar/gradle/current

(helps with avoiding reconfiguration after formula was updated).

Best Answer

This used to be in another place, but now you will find the current versions symlinked here:

/usr/local/var/homebrew/linked/