robbyrussell/oh-my-zsh — pull request #1173 by walkah (2012-06-18 14:46:13+00:00)
Title: Readlink is different on OS X

The call to `readlink -f` fails on OS X (and probably other bsd's) rendering this plugin ineffective on my mac. This pull cleans up the plugin using `git rev-parse --show-toplevel` instead which works well on both linux and osx.

It also cleans up some of the variable to keep prompts clean.