Possible Duplicate: What's the difference between .bashrc, .bash_profile, and .environment?
It seems that if I use
alias ls='ls -F'
inside of .bashrc on Mac OS X, then the newly created shell will not have that alias. I need to type bash
again and that alias will be in effect.
And if I log into Linux on the hosting company, the .bashrc
file has a comment line that says:
For non-login shell
and the .bash_profile
file has a comment that says
for login shell
So where should aliases be written in? How come we separate the login shell and non-login shell?
Some webpage say use .bash_aliases
, but it doesn't work on Mac OS X, it seems.