robbyrussell/oh-my-zsh — pull request #1285 by obmarg (2012-08-17 18:29:28+00:00)
Title: Updated virtualenvwrapper plugin to use which

Previously the virtualenvwrapper plugin contained some hard-coded paths
to potential locations for virtualenvwrapper.sh. This works most of the
time, however this falls apart if virtualenvwrapper.sh is not installed
in one of the listed locations (for example if it's installed using pip
--user).

To fix, I've replaced the hard-coded /usr/bin and /usr/local/bin paths
with `which virtualenvwrapper.sh`. This should find the shell script
anywhere if it's on the path which seems like better behaviour than
relying on it being in specific locations.