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