Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm a novice at cygwin/linux administration so please be patient with my ignorance:

I'm trying to change my .bashrc profile and setup (.gitconfig ) I can't seem to find my home folder.

My hypothesis is that i don't have my home folder because i've remapped my dos $HOME path. Could this be the trick?

Anyways how would one rebuild the home folder ? Uninstall and reinstall cygwin? (i'd like to avoid this if possible).

Thanks a plethora in advance,

Chris

share|improve this question

2 Answers 2

up vote 1 down vote accepted

If you open up a cygwin shell instead of a cmd shell you should start out in your home directory. cygpath and pwd should be able to help you figure out where you are.

share|improve this answer

Yes, if $HOME is set when Cygwin is invoked, Cygwin will use that as your home directory. Otherwise it reads the location of your home directory from /etc/passwd.

share|improve this answer
    
Could i change the .bat file of the cygwin to avoid this? if so how would i do it? –  chrisjlee Sep 9 '10 at 12:42
    
Yes, add set HOME= to cygwin.bat to unset that variable. –  ak2 Sep 19 '10 at 10:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.