Have you taken a look at something like http://modules.sourceforge.net ? Its not zsh per se, but sounds exactly like what you are trying to emulate.
Have you taken a look at something like http://modules.sourceforge.net ?
Its not zsh per se, but sounds exactly like what you are trying to
emulate.