[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin
Subject:    Re: setting $HOME variable
From:       Mark Bohlman <mbohlman () tcicredit ! com>
Date:       2004-11-08 20:38:04
Message-ID: cmolha$l3d$1 () sea ! gmane ! org
[Download RAW message or body]

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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic