This is the mail archive of the
mailing list for the Cygwin project.
Re: Issues with setting or not setting HOME environment variable
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: David Karr <davidmichaelkarr at gmail dot com>, cygwin at cygwin dot com
- Date: Tue, 27 Mar 2018 12:59:44 +0300
- Subject: Re: Issues with setting or not setting HOME environment variable
- References: <CAA5t8Vpxhn9Mf+ACxEJ57AdS4mk7J9gDWv21hOSOUxT7h-Yqxw@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
Greetings, David Karr!
> I currently do not set the HOME environment variable. I get the
> impression you're not supposed to do that. When I run a mintty shell,
> it correctly puts me in "/home/<myuid>", which is what I want.
> I'm running into a problem with Eclipse egit, as I think it's looking
> for the "HOME" environment variable to determine where the .gitconfig
> file is. If it doesn't find "HOME" set, I have a feeling it's looking
> for "HOMEDRIVE", which is set to something I can't easily control.
> Is there some way I can set "HOME" to my Windows home location, but
> still have Cygwin do the right thing and go to "/home/<myuid>"?
It's not Cygwin, it's bash setting HOME when run as login shell.
If you wish, you can force that setting in ~/.profile or otherwise manipulate
the environment prior to starting mintty.
I, for one, prefer my $HOME match my real profile home. Don't see the reason
to spread my stuff thin across the filesystem.
With best regards,
Tuesday, March 27, 2018 12:57:18
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple