1 # Zsh configuration file for environment related options.
4 # Get the current hostname (first part before a dot).
5 host=${$(hostname)//.*/}
7 # Load environmental related settings used by all shells.
8 # If the default file exists, load it.
9 if [[ -f ~/.shell/env ]]; then
12 # If an env file for the current hostname (first part before a dot) exists load
13 # it, otherwise load env.local if available.
14 if [[ -f ~/.shell/env.$host ]]; then
15 source ~/.shell/env.$host
16 elif [[ -f ~/.shell/env.local ]]; then
17 source ~/.shell/env.local
21 # If an env file for the current hostname (first part before a dot) exists load
22 # it, otherwise load env.local if available.
23 if [[ -f ~/.zsh/env.$host ]]; then;
24 source ~/.zsh/env.$host
25 elif [[ -f ~/.zsh/env.local ]]; then;
26 source ~/.zsh/env.local