Originally Posted by chrism01
sh is normally /bin/sh
The login sequence starts with /etc/profile, then calls your local .bashrc and/or .bash_profile. You default shell is set in your entry in /etc/passwd; it's the last field.
I don't have access to /etc/profile, so I added some alias in .bashrc. It seems to me this file is not sourced automatically, because only if I source .bashrc manually, the alias takes effect.
I did see this block in /etc/profile:
test -r /etc/bash.bashrc && . /etc/bash.bashrc
if test "$is" = "bash" -a -z "$_HOMEBASHRC" ; then
# loop detection
test -r $HOME/.bashrc && . $HOME/.bashrc
However, my shell is not bash, how to ask sh to source .bashrc by itself?