robbyrussell/oh-my-zsh — pull request #915 by neoascetic (2012-02-06 00:05:33+00:00)
Title: WORK plugin added

* before definition of zsh plugins set `WORKPLUGIN_DIRS` variable with
list of your "work" directories relative to your $HOME, such as `WORKPLUGIN_DIRS=('work' 'src')`
* now you can use `work` command in your zshell, which will change CWD to
first occurrence of `WORKPLUGIN_DIRS` sub folders
* directories competition is supported
* also, you can define `WORKPLUGIN_CALLBACK` function, which will be
called after directory change. In my case, I use it to call
`virtualenvwrapper`'s `workon` function:

```sh
WORKPLUGIN_CALLBACK() {
deactivate 2> /dev/null
workon "$1" 2> /dev/null
}
```