X-Spam-Check-By: sourceware.org Message-ID: <461C0EEB.7070209@qualcomm.com> Date: Tue, 10 Apr 2007 15:25:47 -0700 From: Rob Walker User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: redefining $HOME References: <461A5613 DOT 7000101 AT gmail DOT com> In-Reply-To: <461A5613.7000101@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I use mount: rwalker AT vagrant> mount C:\Documents and Settings on /home type system (binmode) C:\apps\cygwin\bin on /usr/bin type system (binmode) C:\apps\cygwin\lib on /usr/lib type system (binmode) C:\apps\cygwin on / type system (binmode) C:\dev on /dev type system (binmode) C:\tmp on /tmp type system (binmode) A: on /a type system (binmode) C: on /c type system (binmode) D: on /d type system (binmode) Also: in "Control Panel->System->Advanced->Environment Variables->User variables" I have HOME=C:/Documents and Settings/rwalker. When bash constructs a shell environment, I get "HOME=/home/rwalker" (by the magic of mount and bash's environment variable mapping). This works great for all the Cygwin stuff. Any normal Windows programs that use $HOME (e.g. FSF ntemacs) see the same directory, but by a different name. -Rob Gustavo Seabra wrote: > 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. > > > > -- > 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/ > -- 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/