]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - bash/rc
3cc4827fbc9a1481d136319a2c586c2fded2fa1f
[config/dotfiles.git] / bash / rc
1 # Main bash configuration file.
2 #
3 # Is sourced by all interactive shells and other shells like scp or rcp.
4
5
6 . ~/.shell/functions
7
8 source_debug ". ~/.bash/rc"
9
10 source_config ~/.shell/env
11
12
13 # Check if this is an interactive shell. Abort if not to prevent problems with
14 # scp and rcp. Taken from default Debian bashrc. Thanks.
15 if [[ $- != *i* ]]; then
16     return
17 fi
18
19
20 # Set the prompt; hostname and current working directory are displayed.
21 # Hostname is displayed in green, current directory in blue.
22 PS1='\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ '
23
24 # Use Vi(m) style in bash.
25 set -o vi
26
27
28 source_config ~/.shell/aliases
29
30 source_config ~/.bash/rc.local
31
32 source_debug ". ~/.bash/rc (done)"
33
34 # vim: ft=sh