Persisting values of environment variables
Thorsten Kampe
thorsten@thorstenkampe.de
Thu Nov 24 15:32:00 GMT 2005
* 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
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list