aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_profile
blob: d3f9f9b06dd1eed735860e07ea0a19c743ca0138 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Load ~/.profile regardless of shell version
if test -e "$HOME"/.profile ; then
    . "$HOME"/.profile
fi

# Ensure we're using at least version 2.05
if ! test -n "$BASH_VERSINFO" ; then
    return
elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]} == 2)) \
    && ((10#${BASH_VERSINFO[1]%%[![:digit:]]} < 5)) ; then
        return
fi

# Source interactive Bash config if it exists
if [[ -r $HOME/.bashrc ]] ; then
    source "$HOME"/.bashrc
fi