X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Fenv;h=37b146769c69772288a6da2c217affb2dad88eef;hb=2f24b0aebdd38599256c21b82ee7b39fe5ad0963;hp=801b2379e24327a75db295599210b221c9a2448e;hpb=7abc06281cf09194942f844e9655ad96d87c0bdd;p=config%2Fdotfiles.git diff --git a/zsh/env b/zsh/env index 801b237..37b1467 100644 --- a/zsh/env +++ b/zsh/env @@ -11,11 +11,11 @@ export EDITOR=vim export PAGER=less -# If an env.local file exists load it, otherwise load an env file for the -# current hostname (first part before a dot) if it exists. +# 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.local ]]; then; - source ~/.zsh/env.local -elif [[ -f ~/.zsh/env.$host ]]; then; +if [[ -f ~/.zsh/env.$host ]]; then; source ~/.zsh/env.$host +elif [[ -f ~/.zsh/env.local ]]; then; + source ~/.zsh/env.local fi