To make bash scripts executable use:
$chmod u+x fileName
My location of the bin folder is in my $HOME directory, therefore this needs to be added to the .bashrc file:
if [ -d "$HOME/bin" ] ; then
export PATH="$HOME/bin:$PATH"
export PATH="$HOME/bin/OpenFOAM:$PATH"
if [ -f "$HOME/bin/aliases" ]; then
source $HOME/bin/aliases
fi
if [ -f "$HOME/bin/functions" ]; then
source $HOME/bin/functions
fi
fi
OpenFOAM folder consists of various functions and dicts useful for use with OpenFOAM.