Skip to main content

start msys2 without bat

Project description

msys2_wrapper

A Python wrapper for starting msys2 without bat

Prereq

Has installed MSYS2 at disk root (e.g. C:/msys64), or msys2.cmd or msys2_shell.cmd can be found in PATH.

also supports scoop-installed msys2.

In case of multiple MSYS2 detected, it will launch the first found in PATH, and if not found, C:/msys64 was checked, until Z:/msys64.

You can also create a file C:/Users/[your user name]/.config/msys2_wrapper.ini to override the default, with the following contents:

[default]
base = "D:/msys64"

Usage

A console launcher:

msys2c /?
Usage:
    msys2c [options] [login shell parameters]

Options:
    -mingw32 | -mingw64 | -ucrt64 | -clang64 |
    -msys[2] | -clangarm64           Set shell type
    -defterm | -mintty | -conemu     Set terminal type
    -here                            Use current directory as working
                                     directory
    -where DIRECTORY                 Use specified DIRECTORY as working
                                     directory
    -[use-]full-path                 Use full current PATH variable
                                     instead of trimming to minimal
    -no-start                        Do not use "start" command and
                                     return login shell resulting
                                     errorcode as this batch file
                                     resulting errorcode
    -shell SHELL                     Set login shell
    -help | --help | -? | /?         Display this help and exit

Any parameter that cannot be treated as valid option and all
following parameters are passed as login shell command parameters.

A GUI launcher msys2w was provided for launch with default mintty .

Source code

https://github.com/soda92/msys2_wrapper

License

APACHE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msys2_wrapper-2025.3.5.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msys2_wrapper-2025.3.5.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file msys2_wrapper-2025.3.5.0.tar.gz.

File metadata

  • Download URL: msys2_wrapper-2025.3.5.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for msys2_wrapper-2025.3.5.0.tar.gz
Algorithm Hash digest
SHA256 2686fe0e68af41478a882cc6666a0227ccfc273750eb734b33b16c1a5d9100ae
MD5 b1969ad8624c2516550ff99a7e68ec6c
BLAKE2b-256 8dee8c853159b696490b15a6a27056571aa13806e98c23fab752e238c198e0ac

See more details on using hashes here.

File details

Details for the file msys2_wrapper-2025.3.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for msys2_wrapper-2025.3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff975d2be0cbe13644c785ff6ee82a5b55d3df30ec74ca9611d4dea4c7dce948
MD5 9b68bf2f394feb93138244b36b143bdf
BLAKE2b-256 b0746c4eb813cc2f3cab830893635c3550db565ec13930a08ac4f2446a1bf117

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page