$PATH setup in zshenv (obarun-zsh 0.5-1) is
path=(/usr/bin: /bin: /usr/local/bin: /opt/: /usr/share/man: $path)
I think this is copied to $HOME when setting up new users.

If not overwritten somewhere else this sets $PATH to be something like
/usr/bin::/bin::/usr/local/bin::/opt/::/usr/share/man::/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin
zsh appears to treat double colons as does bash. From man bash: "A zero-length (null) directory name in the value of PATH indicates the current directory. A null directory name may appear as two adjacent colons, or as an initial or trailing colon.". zsh manual does not say much.

Current directory is probably not wanted in $PATH.

Solution would be
path=(/usr/bin /bin /usr/local/bin /opt/ /usr/share/man $path)
or even
path=(/usr/bin /bin /usr/local/bin $path)
in the zshenv.
good catch!
thanks for that

Powered by Obarun