bash on login.
Bahman M.
b.movaqar at adempiere.org
Thu Sep 6 08:32:01 PDT 2007
Albert Shih wrote:
> Hi all
>
> I'm using bash for standard shell, what I don't understand is when I'm
> connect by ssh on my server the bash don't parse .bashrc file.
>
> But if in the bash session I type �bash� this time the .bashrc is use.
>
> How can I make the .bashrc file is read when I connect by ssh ?
SSH runs bash as a login shell and in that mode, bash doesn't execute
.bashrc (see man 1 bash).
One solution is to put the following in ~/.bash_profile.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
Bahman
More information about the freebsd-questions
mailing list