Use -bg for background colour.
[profile.git] / .bash_profile
1 if $(tty -s) || [ "${0:0:1}" = "-" ]; then
2   # Remember if nocaseglob was on.
3   shopt -q nocaseglob
4   nocg=$?
5   # Turn it off so we source stuff in the right order.
6   shopt -u nocaseglob
7
8   # Remember LC_ALL.
9   lc_all=$LC_ALL
10   # Turn it off to set case-sensitive matching
11   LC_ALL=C
12
13   # Source all scripts.
14   for i in ~/.profile.d/*.bashrc; do . $i; done; unset i
15
16   # Maybe turn nocaseglob back on.
17   [ $nocg = 0 ] && shopt -s nocaseglob
18
19   # Reset LC_ALL.
20   LC_ALL=$lc_all
21
22   unset lc_all nocg
23   __ps1
24 fi