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:
b2b5216
)
Test for login shell in a back-compatible way.
author
Iain Patterson
<me@iain.cx>
Mon, 21 Jan 2008 14:31:49 +0000
(14:31 +0000)
committer
Iain Patterson
<me@iain.cx>
Mon, 21 Jan 2008 14:31:49 +0000
(14:31 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@97
6be0d1a5
-5cfe-0310-89b6-
964be062b18b
.bash_profile
patch
|
blob
|
history
diff --git
a/.bash_profile
b/.bash_profile
index
81a58de
..
e905a86
100644
(file)
--- a/
.bash_profile
+++ b/
.bash_profile
@@
-1,5
+1,7
@@
-#
$Id$
-if $(tty -s) ||
$(shopt -q login_shell)
; then
- for i in ~/.profile.d/*.bashrc; do . $i; done
+#
echo "$(date +'%F %T'): pid: $$; ppid: $PPID; tty: $(tty); .bash_profile" >> ~/.nx/spam
+if $(tty -s) ||
[ "${0:0:1}" = "-" ]
; then
+ for i in ~/.profile.d/*.bashrc; do . $i; done
; unset i
__ps1
fi
+#export IP01=.bash_profile
+#export IP01BASH_PROFILE=.bash_profile