delorie.com/archives/browse.cgi | search |
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 |
To: | cygwin AT cygwin DOT com |
From: | Mark Bohlman <mbohlman AT tcicredit DOT com> |
Subject: | Re: setting $HOME variable |
Date: | Mon, 08 Nov 2004 15:38:04 -0500 |
Lines: | 28 |
Message-ID: | <cmolha$l3d$1@sea.gmane.org> |
References: | <loom DOT 20041108T174554-117 AT post DOT gmane DOT org> |
Reply-To: | mNOSPAMPORMOIbohlman AT tcicredit DOT com |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | exchange.tcicredit.com |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Thunderbird/0.8 Mnenhy/0.6.0.104 |
In-Reply-To: | <loom.20041108T174554-117@post.gmane.org> |
X-Enigmail-Version: | 0.86.1.0 |
X-Enigmail-Supports: | pgp-inline, pgp-mime |
X-IsSubscribed: | yes |
Michael wrote: > Ive been trying to set the home variable. > > i want home to be c:\cygwin\home\ > > ive tried setting this in the .bat files and in .bashrc but it doesnt work. > If i type echo $HOME i get this > > /cygdrive/c/Documents and Settings/UserName > > Ive read that its in /etc/passwd where it actually looks for the home > directory, but what do you chage? How can i set it so when i start the bash > its starts in the right directory? > > Any help will be appreciated! > > In /etc/passwd find the entry for your userid and the next to the last field is your home directory. Change this to be /home/your_user_id_here where your_user_id_here is your user id. This will set the $HOME variable to be "/home/your_user_id_here, which is probably what you want rather than c:\cygwin\home. If you have the default mounts done and have installed to the default location of c:\cygwin, then this will be the "preferred" (tm) location. -- Mark -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |