This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: Where to put profile files?
- To: "'Randall Parker'" <randall at nls dot net>
- Subject: RE: Where to put profile files?
- From: Mike Little <M dot Little at servicepower dot com>
- Date: Tue, 18 Jul 2000 11:23:42 +0100
- Cc: cygwin at sourceware dot cygnus dot com
> -----Original Message-----
> From: Randall Parker [mailto:randall@nls.net]
> Sent: Tuesday, July 18, 2000 7:06 AM
> To: cygwin@sourceware.cygnus.com
> Subject: Where to put profile files?
>
>
> When I start up Bash from NT it opens in
> c:\winnt\profiles\randall\desktop
>
> So I tried putting .bash_login and .bash_profile in it with
> just one line:
> alias dir=ls
>
> This doesn't work. I tried putting a profile file with the
> same contents in the etc directory under
> where I have cygwin installed:
> j:\prg\cygwin\etc\profile
>
> That doesn't make any difference either.
>
> I tried creating an etc directory on the c drive and putting
> profile in it too:
> c:\etc\profile
>
> That doesn't help either.
>
> So I'm running out of ideas. Anyone know where the Cygwin
> Bash goes looking for profile,
> .bash_login, .bash_profile, and .bashrc?
>
Try setting $HOME before you run bash.
(i.e. set it in Control Panel->System->Environment)
I set mine to %SystemRoot%\Profiles\%USERNAME%\home
Which evaluates to C:\WINNT\Profiles\mlit\home.
The last sub-directory I created (the rest by NT). I have my
.bashrc and .bash_profile files in there (unix line endings)
If you have installed via the latest GUI installer the
/etc/profile file tries to be more sensible about it, and
will in fact create a home directory for you if $HOME is not defined.
Hope that helps.
Mike
--
Mike Little
Share what you know. Learn what you don't.
ServicePOWER Business Solutions Ltd
home: mike@ampersoft.co.uk
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com