Vim tip 99.
[profile.git] / .bash_profile
old mode 100755 (executable)
new mode 100644 (file)
index fcecf15..58f8c11
@@ -1,7 +1,5 @@
 # $Id$
-for i in ~/.profile.d/*.bashrc; do . $i; done
-__ps1
-
-if [ "$OSTYPE" = "cygwin" ]; then
-  shopt -s nocaseglob
+if $(tty -s) || [ "${0:0:1}" = "-" ]; then
+  for i in ~/.profile.d/*.bashrc; do . $i; done; unset i
+  __ps1
 fi