This is the mail archive of the
mailing list for the Cygwin project.
Re: why $HOME/.bashrc is not picked up?
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 18 Apr 2005 15:58:39 -0700
- Subject: Re: why $HOME/.bashrc is not picked up?
- Organization: My own little world...
- References: <BAY10-F10ED5580512977CE551E1E9290@phx.gbl>
- Reply-to: cygwin at cygwin dot com
lin q wrote:
> I can not see "hahaha" when I run cygwin.bat to open a new cygwin window.
> I am sure HOME is set as I add the following line to cygwin.bat,
> echo %HOME%
> and I see the correct path.
> Then I wonder why else might be wrong here?
~/.bashrc is not read for interactive login shells. "man bash", section
The typical thing to do if you want .bashrc to be read for both login
and non-login shells is to place something like "[ -f ~/.bashrc ] && .
~/.bashrc" in ~/.bash_profile.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html