1. Use Windows home directory as MSYS2 home directory
MSYS2 will use Windows %HOME% environment variable as it's $HOME directory. If you set %HOME% in environment variables (to the windows directory you need MSYS2 to use) it will work.So what I did was just add a new enironment variable HOME and set its value to %USERPROFILE% which is the Windows home directory.
2. Make symbolic link
Open Command Prompt as Administrator, and run the command below to create symoblic link:cd C:\msys64\home mklink /D %USERNAME% %USERPROFILE%
3. Inherits Windows PATH environment variable
- Uncomment
MSYS2_PATH_TYPE=inheritin C:\msys64\msys2.ini - Pass
-use-full-pathto msys2_shell.cmd
No comments:
Post a Comment