1 # Main bash configuration file.
4 # Get the current hostname (first part before a dot).
5 host=$(echo $(hostname) | sed -e 's/\..*$//')
7 # Load environmental related settings used by all shells.
8 if [ -f ~/.shell/env ]; then
11 function source_config() {
12 echo "Couldn't load source_config(), can't source files." >&2
16 # Load global env file for current hostname (first part before a dot) or
18 source_config ~/.shell "" env $host
20 # Set the prompt; hostname and current working directory are displayed.
24 # Use Vi(m) style in bash.
28 # Load rc file for current hostname (first part before a dot) or rc.local.
29 source_config ~/.bash "" rc $host