delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Eric Backus <eric_backus AT alum DOT mit DOT edu> |
Subject: | Re: redefining $HOME |
Date: | Tue, 10 Apr 2007 18:03:38 +0000 (UTC) |
Lines: | 28 |
Message-ID: | <loom.20070410T195855-826@post.gmane.org> |
References: | <461A5613 DOT 7000101 AT gmail DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
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 |
Gustavo Seabra <gustavo.seabra <at> gmail.com> writes: > Hi all, > > I was wondering if it is possible to use the windows folder "My > Documents" or even "C:\Documents and Settings\USERNAME" (or some dir > inside those) as the hoe directory in Cygwin. I though about > substituting the user directory inside /home by a symlink to one of the > above. Is there any reason that wouldn't work? Is there a better way to > do it? > > The reason I am thinking about it is just practical: I want to have all > my files (Windows or Cygwin) under one root. > > Thanks a lot > > Gustavo. Yes, you can do this. I've done this for years by putting "/cygdrive/c/Documents and Settings/ericjb/My Documents" into /etc/passwd. This works well, though every once in awhile you might find a shell script which doesn't correctly handle spaces in paths. (Such a script is broken, and should be fixed.) I can't even remember the last time I ran into that though, most scripts don't use $HOME. -- Eric -- 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 |