delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/24/09:21:59

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: Persisting values of environment variables
Date: Thu, 24 Nov 2005 14:16:53 +0000
Lines: 18
Message-ID: <1hkbosmsnsboi$.wem2uavltq5b.dlg@40tude.net>
References: <94BF3137C62D3E4CAED7E97F876585F0D037E5 AT pauex2ku08 DOT agere DOT com> <000101c5f05b$9b756760$d2603620$@com>
Mime-Version: 1.0
User-Agent: 40tude_Dialog/2.0.15.1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

* 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019