This is the mail archive of the
mailing list for the Cygwin project.
Re: Persisting values of environment variables
* Nate Meyer (2005-11-23 18:27 +0100)
> I'm trying to change the value of $HOME. If I do something like "export
> HOME="c:/whatever" $HOME is changed for that session. But after Cygwin is
> closed and restarted
You cannot start or close Cygwin...
> $HOME is set back to the default /home/user.
Sure, that's how it's always been in Linux and Windows.
> How can I persist the change to $HOME?
Put the value in the startup file of the application you are using.
This is _not_ Cygwin but probably bash (a /shell/).
Or put it in the place where you set environment variables in Windows.
/etc/profile mentions how $HOME is set.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html