This is a sample .bash_profile:
# $HOME/.bash_profile
# User specific environment and startup programs
# This file contains user-defined settings that override
# those in /etc/profile
# Get user aliases and functions
if [ -f ~/.bashrc ]; then
GET_PS1="NO" # don't change the prompt colour
. ~/.bashrc
fi
# set a few `default' directories
export CDPATH="$CDPATH:$HOME:$HOME/text:$HOME/text/geology"
The .bash_profile configuration file is placed in the user's home directory
to setup the environment for the bash shell. The following example is calling
the .bashrc file to do all the configuration.
#.bash_profile
source .bashrc