Menu

Controlling where "home" is

Rob Meades
2014-02-06
2014-02-06
  • Rob Meades

    Rob Meades - 2014-02-06

    Hi there. I've just downloaded the very latest MSYS2 on my Win7 machine and begun setting myself up. My problem is that Win7 has my account as "Rob Meades" and so MSYS2 wants my home directory to be "Rob Meades" and the spaces are causing a problem with the tools I'm trying to use.

    How do I tell MSYS2 to give me a different user name?

    I've tried setting a "HOME" environment variable in Win7 (set to "rob") and, though that prevents MSYS2 creating the "Rob Meades" home directory on startup, "cd ~" still tries to take me to "home/Rob Meades" so that's obviously not the whole story.

    Does anyone have any advice before I start hacking around in profile?

    Rob

     
  • Matthieu Vachon

    Matthieu Vachon - 2014-02-06

    Hi there,

    I hit a similar problem. It seems the home directory is picked from the /etc/passwd file. You can edit with vi and change where your home directory is located.

    Tell me if it works in your case.

    Regards,
    Matt

     
  • Rob Meades

    Rob Meades - 2014-02-06

    That did the trick! Many thanks.