robbyrussell/oh-my-zsh — pull request #2342 by blackjid (2013-12-13 22:12:53+00:00)
Title: Prevents oh-my-zsh loading the .zshenv twice

I was having the `.zshenv` file sourced twice, one before `.zshrc` and other after.

The problem is that when running the script to check for an upgrade, it's being called with the `zsh` command, which loads the environments.

In [http://zshwiki.org/home/config/files](zshwiki) says

- zshenv is the 1st file zsh reads; it's read for every shell, even if started with -f (setopt NO_RCS)
- .zshenv is the same, except that it's not read if zsh is started with -f

So I added the `-f` flag to prevent the `.zshenv` being sourced.
It worked for me.

This should help speeding up new shell initializations and I haven't found any side effects.