How to run an alias in a shell script?
FROM

https://askubuntu.com/questions/98782/how-to-run-an-alias-in-a-shell-script

Aliases are deprecated in favor of shell functions. From the bash manual page:

For almost every purpose, aliases are superseded by shell functions.
To create a function, and export it to subshells, put the following in your ~/.bashrc:
petsc() {
~/petsc-3.2-p6/petsc-arch/bin/mpiexec “$@”
}
export -f petsc
OR
You could put the following code in your .bash_aliases:
petsc() {
~/petsc-3.2-p6/petsc-arch/bin/mpiexec “$@”
}