]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - zsh/env
ade0f315102b3b347c0d93b65370385e2be7e4e5
[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 [[ -f ~/.shell/env ]]; then
9     source ~/.shell/env
10 else
11     function source_config() {
12         echo "Couldn't load source_config(), can't source files." >&2
13     }
14 fi
15
16 # Load global env file for current hostname (first part before a dot) or
17 # global env.local.
18 source_config ~/.shell "" env $host
19
20 # Load rc file for current OS.
21 source_config ~/.zsh os env $(uname) nolocal
22 # Load env file for current hostname (first part before a dot) or env.local.
23 source_config ~/.zsh host env $host