]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/env
zsh/rc: Use ' instead of " when possible, drop them if unnecessary.
[config/dotfiles.git] / zsh / env
diff --git a/zsh/env b/zsh/env
index 365c01bfe8a172431d0d0e48b0618c42743fdeb6..cff3f197bff73de256b7d294a7484410c48c146a 100644 (file)
--- a/zsh/env
+++ b/zsh/env
@@ -6,7 +6,7 @@ host=${$(hostname)//.*/}
 
 # Load environmental related settings used by all shells.
 if [[ -f ~/.shell/env ]]; then
-    source ~/.shell/env
+    . ~/.shell/env
 # Fallback functions as ~/.shell/env couldn't be loaded.
 else
     function source_debug() {
@@ -19,13 +19,18 @@ fi
 
 source_debug "sourcing ~/.zsh/env"
 
+
+# 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 rc file for current OS.
-source_config ~/.zsh os env $(uname) nolocal
 # 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