Source bash_profile if there's a tty OR if there's a login shell. This is for No...
[profile.git] / .bash_profile
index fcecf15..81a58de 100644 (file)
@@ -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) || $(shopt -q login_shell); then
+  for i in ~/.profile.d/*.bashrc; do . $i; done
+  __ps1
 fi