aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/bash_profile10
1 files changed, 5 insertions, 5 deletions
diff --git a/bash/bash_profile b/bash/bash_profile
index d7b703eb..bf2fa92c 100644
--- a/bash/bash_profile
+++ b/bash/bash_profile
@@ -1,13 +1,13 @@
+# Load ~/.profile regardless of shell version
+if test -e "$HOME"/.profile ; then
+ . "$HOME"/.profile
+fi
+
# Give up completely if no BASH_VERSINFO (<2.0)
if ! test "$BASH_VERSINFO" ; then
return
fi
-# Source Bourne shell profile if it exists
-if [[ -r $HOME/.profile ]] ; then
- source "$HOME"/.profile
-fi
-
# Source interactive Bash config if it exists
if [[ -r $HOME/.bashrc ]] ; then
source "$HOME"/.bashrc