Is there a way I can use bash aliases from my .bash_aliases file within a shell-scripts?
I thought of something like including
source "$HOME/.bash_aliases
into my script
but it does not work.
Is there a way I can use bash aliases from my .bash_aliases file within a shell-scripts?
I thought of something like including
source "$HOME/.bash_aliases
into my script
but it does not work.
Non-interactive shells don't expand aliases by default. You need to enable it:
shopt -s expand_aliases