* Issues with setting or not setting HOME environment variable
@ 2018-03-23 0:54 David Karr
2018-03-27 13:54 ` Andrey Repin
0 siblings, 1 reply; 2+ messages in thread
From: David Karr @ 2018-03-23 0:54 UTC (permalink / raw)
To: The Cygwin Mailing List
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>"?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Issues with setting or not setting HOME environment variable
2018-03-23 0:54 Issues with setting or not setting HOME environment variable David Karr
@ 2018-03-27 13:54 ` Andrey Repin
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Repin @ 2018-03-27 13:54 UTC (permalink / raw)
To: David Karr, cygwin
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,
Andrey Repin
Tuesday, March 27, 2018 12:57:18
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-27 10:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-23 0:54 Issues with setting or not setting HOME environment variable David Karr
2018-03-27 13:54 ` Andrey Repin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).