This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How do I get my .bashrc read at startup?


If I remember correctly...

with older versions of cygwin the file /etc/profile
contained the following statement

   test -f ./.bashrc && . ./.bashrc

which would read .bashrc at startup.

The above statement has been removed from newer versions.

I think that the "proper" way to read .bashrc is to
create a ~/.bash_profile with something similar to
the following:

   if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

When bash is launched with the "--login -i" options,
it looks for the .bash_profile file.

--Mark

----- Original Message ----- 
From: "Lane, Frank L" <frank.l.lane@boeing.com>
To: <cygwin@cygwin.com>
Sent: Tuesday, October 01, 2002 11:53 AM
Subject: How do I get my .bashrc read at startup?


> Thanks to Randall for the bash(ing)!:-)
> 
> How do I get my .bashrc read at startup?
> 
> <snip>
> 
> Thanks,
> Frank
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]