Wanted to get an MSYS2 shell inside ConsoleZ rather than being forced to use whatever the fuck terminal emulator it has by default.
Figured out I can do that with 2 lines of cursed bullshit in a Windows batch script:
bash -c 'cd ^&^& exec $(getent passwd "%USERNAME%" ^| cut -d: -f7) --login'
The aforementioned weird bullshit to get Starship to work nicely is because Starship on Windows doesn't know jack shit about MSYS2 (even when compiled with Cargo inside MSYS2), so there's a couple little config changes, plus explicitly setting the STARSHIP_CONFIG environment variable in ~/.profile
use_logical_path = false
"C:/msys64/" = "/"
"/home/Iris System" = "~"
@Whovian9369 IIRC, msys2_shell.cmd completely ignores what shell you set in /etc/passwd and will always just start bash. This way works though!
the mastodon instance at cybre.space is retiring
see the end-of-life plan for details: https://cybre.space/~chr/cybre-space-eol