]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - bash/rc
Also added support to automatically load configuration files to bash.
[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.local file exists load it, otherwise load a rc file for the current
14 # hostname (first part before a dot) if it exists.
15 host=$(echo $(hostname) | sed -e 's/\..*$//')
16 if [ -f ~/.bash/rc.local ]; then
17     source ~/.bash/rc.local
18 elif [ -f ~/.bash/rc.$host ]; then
19     source ~/.bash/rc.$host
20 fi