up vote 0 down vote favorite
share [g+] share [fb]

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

link|improve this question
feedback

2 Answers

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.

link|improve this answer
feedback

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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