]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - bash/rc
First load the bash file for this hostname, then rc.local.
[config/dotfiles.git] / bash / rc
1 # Main bash configuration file.
2
3
4 # Use UTF-8 encoding in the terminal.
5 export LC_ALL=en_US.UTF-8
6
7 # Use Vim as editor.
8 export EDITOR='vim'
9 # Use Vi(m) style in bash.
10 set -o vi
11
12
13 # If a rc file for the current hostname (first part before a dot) exists load
14 # it, otherwise load rc.local if available.
15 host=$(echo $(hostname) | sed -e 's/\..*$//')
16 if [ -f ~/.bash/rc.$host ]; then
17     source ~/.bash/rc.$host
18 elif [ -f ~/.bash/rc.local ]; then
19     source ~/.bash/rc.local
20 fi