]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - zsh/env
37b146769c69772288a6da2c217affb2dad88eef
[config/dotfiles.git] / zsh / env
1 # Zsh configuration file for environment related options.
2
3
4 # Use UTF-8 encoding in the terminal.
5 export LC_ALL=en_US.UTF-8
6
7 # Set Vim as my editor.
8 export EDITOR=vim
9
10 # Set less as my pager, its configuration is done through the .less file.
11 export PAGER=less
12
13
14 # If an env file for the current hostname (first part before a dot) exists load
15 # it, otherwise load env.local if available.
16 host=${$(hostname)//.*/}
17 if [[ -f ~/.zsh/env.$host ]]; then;
18     source ~/.zsh/env.$host
19 elif [[ -f ~/.zsh/env.local ]]; then;
20     source ~/.zsh/env.local
21 fi