X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Fenv;h=93480281f2fe9c1ffe23ae467cc83088d7fc165c;hb=df39157fd0b6c0ea512beb2a57cf8c6f88c5db11;hp=365c01bfe8a172431d0d0e48b0618c42743fdeb6;hpb=c3ccdced26ff5d9baf36858968701e7b12447cd6;p=config%2Fdotfiles.git diff --git a/zsh/env b/zsh/env index 365c01b..9348028 100644 --- 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,6 +19,11 @@ 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 @@ -29,3 +34,5 @@ source_config ~/.zsh os env $(uname) nolocal source_config ~/.zsh host env $host source_debug "finished sourcing ~/.zsh/env" + +# vim: ft=zsh