From the man pages of bash:
Aliases are not expanded when the shell is not interactive, unless the
expand_aliasesshell option is set usingshopt
There are a couple ways to do this, but the simplest is to just add the following line to your .bashrc file:
shopt -s expand_aliases