X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Fenv;h=cff3f197bff73de256b7d294a7484410c48c146a;hb=bba57cf2b29e813e061cefd755abbe2021bb7c07;hp=ecfd002319ea3c815255ea3669b8692829acf1d3;hpb=dd87c200babeaa8006cbe7df050e1477c84a5aba;p=config%2Fdotfiles.git diff --git a/zsh/env b/zsh/env index ecfd002..cff3f19 100644 --- a/zsh/env +++ b/zsh/env @@ -19,12 +19,15 @@ 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