redefining $HOME

Rob Walker rwalker@qualcomm.com
Tue Apr 10 22:28:00 GMT 2007


I use mount:

rwalker@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/



More information about the Cygwin mailing list