]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - zsh/env
a3cb729747263e3380c6dc0fce4deac6ed8da7da
[config/dotfiles.git] / zsh / env
1 # Zsh configuration file for environment related options.
2
3
4 # Get the current hostname (first part before a dot).
5 host=${$(hostname)//.*/}
6
7 # Load environmental related settings used by all shells.
8 # If the default file exists, load it.
9 if [[ -f ~/.shell/env ]]; then
10     source ~/.shell/env
11 fi
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
18 fi
19
20
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
27 fi