How to automatically load alias from .bashrc in a bash script?
From:
Peng Yu
Subject:
How to automatically load alias from .bashrc in a bash script?
Date:
Thu, 27 Oct 2011 11:17:14 -0500
Hi,
I want to use some alias in a bash script. But I have to include the
following line in the script in order to use the alias defined in
~/.bashrc. Is there a way to automatically load the alias from .bashrc
so that I don't have to explicitly include these two lines?
shopt -s expand_aliases
. ~/.bashrc
--
Regards,
Peng