12 lines
346 B
PowerShell
12 lines
346 B
PowerShell
# msys2-ucrt.ps1
|
|
$msysShell = "C:\msys64\msys2_shell.cmd"
|
|
|
|
if ($args.Count -gt 0) {
|
|
# Combine arguments into a single string for bash execution
|
|
$bashCommand = $args -join ' '
|
|
& $msysShell -defterm -here -no-start -ucrt64 -c $bashCommand
|
|
} else {
|
|
# Open interactive UCRT64 shell
|
|
& $msysShell -defterm -here -no-start -ucrt64
|
|
}
|