]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - zsh/env
Added the possibility to automatically load configuration files.
[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.
11 export PAGER=less
12
13 # Set options for less. If the command output fits on the current terminal
14 # page less automatically quits. Also allows the use with colordiff.
15 export LESS="--no-init --search-skip-screen --quit-if-one-screen \
16 --RAW-CONTROL-CHARS"
17
18
19 # If an env.local file exists load it, otherwise load an env file for the
20 # current hostname (first part before a dot) if it exists.
21 host=${$(hostname)//.*/}
22 if [[ -f ~/.zsh/env.local ]]; then;
23     source ~/.zsh/env.local
24 elif [[ -f ~/.zsh/env.$host ]]; then;
25     source ~/.zsh/env.$host
26 fi