delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/31/06:37:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <20100331133700.260816ngtqed0s80@webmail.df.eu>
Date: Wed, 31 Mar 2010 13:37:00 +0200
From: Markus Hoenicka <markus DOT hoenicka AT mhoenicka DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: Changing the home directory ($HOME)
References: <n2n1e1600301003310431xf9bc9628s7d8b32bb8007990e AT mail DOT gmail DOT com>
In-Reply-To: <n2n1e1600301003310431xf9bc9628s7d8b32bb8007990e@mail.gmail.com>
MIME-Version: 1.0
User-Agent: domainFACTORY
X-Df-Sender: 472582
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Phil Couling <couling AT gmail DOT com> was heard to say:

> I have cygwin pre installed on a pc I'm using.  I'd like to change the
> home directory ($HOME) but I'm having some trouble finding where it's
> been set.  Currently it points to a drive letter q: . I'd much prefer
> to point it at /home/username.

/etc/profile says:

# Here is how HOME is set, in order of priority, when starting from Windows
#  1) From existing HOME in the Windows environment, translated to a  
Posix path
#  2) from /etc/passwd, if there is an entry with a non empty directory field
#  3) from HOMEDRIVE/HOMEPATH
#  4) / (root)

I've used #1.

HTH
Markus

-- 
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38



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

- Raw text -


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