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
}
-# If a rc.local file exists load it, otherwise load a rc file for the current
-# hostname (first part before a dot) if it exists.
+# If a rc file for the current hostname (first part before a dot) exists load
+# it, otherwise load rc.local if available.
host=${$(hostname)//.*/}
-if [[ -f ~/.zsh/rc.local ]]; then;
- source ~/.zsh/rc.local
-elif [[ -f ~/.zsh/rc.$host ]]; then;
+if [[ -f ~/.zsh/rc.$host ]]; then;
source ~/.zsh/rc.$host
+elif [[ -f ~/.zsh/rc.local ]]; then;
+ source ~/.zsh/rc.local
fi