X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.bash_profile;h=58f8c11feb6d225823e0f88a3440683bb7a70054;hb=a1c55a38fb1629ac6886b900f6de5083582d1b6b;hp=fcecf152d023d17ed2cb726899c981ed35725862;hpb=ccd9a2392417e22f770ba7d7eec7cfc5d997a799;p=profile.git diff --git a/.bash_profile b/.bash_profile index fcecf15..58f8c11 100644 --- a/.bash_profile +++ b/.bash_profile @@ -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