From 39c1d3d47308ad8a375806235b7273f128898a9c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 27 May 2015 18:15:40 +1200 Subject: Always source ~/.profile in ~/.bash_profile --- bash/bash_profile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bash/bash_profile') 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 -- cgit v1.2.3