Reorder the first zsh setup file
Use PCRE regexps
Add .zshenv file support

Behaves like dotenv for programming languages, in my shell.

Hattip to http://javieracero.com/blog/a-useful-shell-function for having the same idea, and a different implementation.