git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test for login shell in a back-compatible way.
[profile.git]
/
.bash_profile
diff --git
a/.bash_profile
b/.bash_profile
index
fcecf15
..
e905a86
100644
(file)
--- a/
.bash_profile
+++ b/
.bash_profile
@@
-1,7
+1,7
@@
-# $Id$
-for i in ~/.profile.d/*.bashrc; do . $i; done
-__ps1
-
-if [ "$OSTYPE" = "cygwin" ]; then
- shopt -s nocaseglob
+#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
fi
+#export IP01=.bash_profile
+#export IP01BASH_PROFILE=.bash_profile