aboutsummaryrefslogblamecommitdiff
path: root/bash/bash_profile
blob: 7366840e2810e72cce216b3073bc80c530ba1fec (plain) (tree)
1
2
3
4
5
6
7
8
                                             
                                 


                      
                                          
                                   
          


                                                         

  
                                             
                                
                          
  
 
# Load ~/.profile regardless of shell version
if [ -e "$HOME"/.profile ] ; then
    . "$HOME"/.profile
fi

# Ensure we're using at least version 2.05
if ! [ -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 [[ -e $HOME/.bashrc ]] ; then
    source "$HOME"/.bashrc
fi