X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.bash_profile;h=d2f4fc6e01d66fbfda501cadafd60aedbfbd1bba;hp=6c93ffe524ac50a885edece07537155c1fe22723;hb=815c4966940595d1c924b0e01e82fe99fb1c4a29;hpb=fbb8103d9b90c369b770286ea49b99ecb7352d36 diff --git a/.bash_profile b/.bash_profile index 6c93ffe..d2f4fc6 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,4 +1,4 @@ -if $(tty -s) || [ "${0:0:1}" = "-" -o "$1" = "force" ]; then +if tty -s || [ "${0:0:1}" = "-" -o "$1" = "force" ]; then # Remember if nocaseglob was on. shopt -q nocaseglob nocg=$? @@ -11,7 +11,7 @@ if $(tty -s) || [ "${0:0:1}" = "-" -o "$1" = "force" ]; then LC_ALL=C # Source all scripts. - for i in ~/.profile.d/*.bashrc; do . "$i"; done; unset i + for i in ${PROFILE_HOME:-~}/.profile.d/*.bashrc; do . "$i"; done; unset i # Maybe turn nocaseglob back on. [ $nocg = 0 ] && shopt -s nocaseglob