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

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -