Re: bash on login.



On Thursday 06 September 2007 15:06:02 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 ?

I source it in ~/.bash_profile:

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: export PATH (newbie question)
    ... >> I have a program that I want to run from the command line on a fairly ... > for all users who use bash the next time they log in. ... Looking through the bashrc file, ...
    (RedHat)
  • Re: bash on login.
    ... I'm using bash for standard shell, what I don't understand is when I'm ... How can I make the .bashrc file is read when I connect by ssh? ... MailScanner thanks transtec Computers for their support. ...
    (freebsd-questions)
  • Re: Mac OS X Installation Problem
    ... instructions on how to create or edit a .bashrc file. ... my own using bash and nano, but got stuck with the save command. ... I am supposed to use the "M-O" command to save it in Mac format, ...
    (comp.lang.python)
  • Re: bash on login.
    ... I'm using bash for standard shell, what I don't understand is when I'm ... How can I make the .bashrc file is read when I connect by ssh? ... Heure local/Local time: ...
    (freebsd-questions)
  • Re: /bin/sh does not read profile
    ... but with bash. ... account and root set to use bash instead of sh and when I login the ... .bashrc file is not read. ... How can I get it to load .bashrc when I login? ...
    (freebsd-questions)