I'm an old cygwin user who went astray years ago and would like to confirm
my MSYS2 setup.

Here's what I'm doing to have a sandboxed style setup that isolates my
normal windows setup. For example, I don't want MSYS2's default
/etc/profile to think HOME is C:\Users\Jon. I want it to think HOME is
%MSYS_INSTALL_DIR%/home/Jon and use/modify files in that location.

1) Create a desktop shortcut with

 C:\Windows\System32\cmd.exe /e:on /v:on /k C:\Apps\msys32\msys2_shell.bat


2) Modify MSYS2's msys2_shell.bat to include

set HOME=%~dp0home\Jon


3) Place the mingw-w64 official toolchain in C:\Apps\DevTools\mingw
(actually it's a windows directory symlink to
C:\Apps\DevTools\toolchains\mingwbuilds-64-4.8.2)


4) Update /etc/fstab to include

C:/Apps/DevTools/mingw /usr/local/mingw


It seems to be OK, but there's one oddity I've found so far. When I use the
shortcut, I'm dumped in `~` which pwd's to /usr/home/Jon. When I `cd ~` I'm
told I'm in /home/Jon and pwd shows the same thing. Also, my /etc/passwd
entry shows /home/Jon.

I suspect this is just cygwin's aliasing magic making things nicer for me.
But I want to check that my HOME update in msys2_shell.bat should be OK.
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to