It becomes very handy to open project in your IDE without wasting time in navigation from UI. To accomplish the same here is simple way. Run below commands and you are done 😉
curl -L "https://gist.githubusercontent.com/chrisdarroch/7018927/raw/9a6d663fd7a52aa76a943fe8a9bc6091ad06b18d/idea" -o /usr/local/bin/idea chmod +x /usr/local/bin/idea
usage: open terminal and navigate to your project
Tested on Mac OS X
Note: If you get a “Permission denied” error, your /usr/local/bin directory probably isn’t writable and you’ll need to install script as the superuser. Run sudo -i, then the two commands above, then exit.