If you need to use an alias inside a script you need this:

shopt -s expand_aliases
source ~/.bash_...

Continue reading...