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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"