This makes completing files faster and easier when using a VCS.
# When unsetting variables make sure every variable name is only suggested
# once.
zstyle ':completion:*:unset:*' ignore-line yes
-# When working with mercurial don't complete the same file multiple times.
-zstyle ':completion:*:hg*:*' ignore-line yes
+# When working with Mercurial and Git don't complete the same file multiple
+# times. Very useful when completing file names.
+zstyle ':completion:*:(hg|git)*:*' ignore-line yes
# ALIAS AND FUNCTION SETTINGS