How to change HOME directory and start directory on MSYS2?
In one of your shell startup scripts (e.g. ~/.bash_profile
where ~
is the default/original home directory) you can change the $HOME environment variable:
export HOME=/something/else
If you want your shell to open in that directory you might need to run cd
(with no arguments) after setting $HOME
; I have not tested it.