]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/env
First load the zsh file for this hostname, then (env|rc).local.
[config/dotfiles.git] / zsh / env
diff --git a/zsh/env b/zsh/env
index 801b2379e24327a75db295599210b221c9a2448e..37b146769c69772288a6da2c217affb2dad88eef 100644 (file)
--- 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