-# If an env file for the current hostname (first part before a dot) exists load
-# it, otherwise load env.local if available.
-host=${$(hostname)//.*/}
-if [[ -f ~/.zsh/env.$host ]]; then;
- source ~/.zsh/env.$host
-elif [[ -f ~/.zsh/env.local ]]; then;
- source ~/.zsh/env.local
-fi
+# Make sure elements in PATH are unique.
+typeset -U path PATH
+
+
+# Load global env file for current hostname (first part before a dot) or
+# global env.local.
+source_config ~/.shell "" env $host
+
+# Load env file for current hostname (first part before a dot) or env.local.
+source_config ~/.zsh host env $host
+
+source_debug "finished sourcing ~/.zsh/env"
+
+# vim: ft=zsh