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,



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.


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.

  • 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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