bash script not reading alias in bashrc -
i have created alias in .bashrc file:
alias java='java -xmx1200m' this alias works when run java command shell directly.
however, when java command inside bash script (script.sh), alias not activated. how ensure aliases in .bashrc file accepted in bash script ??
alias not expanded in non-interactive shells.
the way make alias source target script 1 contains alias.
$ source .bashrc $ . custom_script.sh
Comments
Post a Comment