git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76b5ceb
)
Run .profile.d scripts in the correct order.
author
Iain Patterson
<me@iain.cx>
Mon, 15 Sep 2008 09:27:05 +0000
(09:27 +0000)
committer
Iain Patterson
<me@iain.cx>
Mon, 15 Sep 2008 09:27:05 +0000
(09:27 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@147
6be0d1a5
-5cfe-0310-89b6-
964be062b18b
.bash_profile
patch
|
blob
|
history
diff --git
a/.bash_profile
b/.bash_profile
index
58f8c11
..
e061e9c
100644
(file)
--- a/
.bash_profile
+++ b/
.bash_profile
@@
-1,5
+1,15
@@
# $Id$
if $(tty -s) || [ "${0:0:1}" = "-" ]; then
+ # Remember if nocaseglob was on.
+ shopt -q nocaseglob
+ nocg=$?
+ # Turn it off so we source stuff in the right order.
+ shopt -u nocaseglob
+ # And set case-sensitive matching
+ LC_CTYPE=en_GB; LANG=
for i in ~/.profile.d/*.bashrc; do . $i; done; unset i
+ # Maybe turn it back on.
+ [ $nocg = 0 ] && shopt -s nocaseglob
+ unset nocg
__ps1
fi