@linxin666/dsh-win-bash 0.0.0-stage → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/LICENSE +202 -0
  2. package/PROVENANCE.md +215 -0
  3. package/README.i18n.yaml +6 -0
  4. package/README.md +264 -2
  5. package/README.zh.md +221 -0
  6. package/cordis.patch.yml +13 -0
  7. package/lib/index.js +2756 -0
  8. package/lib/types/background.d.ts +169 -0
  9. package/lib/types/config.d.ts +130 -0
  10. package/lib/types/gate.d.ts +179 -0
  11. package/lib/types/index.d.ts +104 -0
  12. package/lib/types/protocol.d.ts +90 -0
  13. package/lib/types/pwsh-replacement.d.ts +140 -0
  14. package/lib/types/runtime.d.ts +115 -0
  15. package/lib/types/shell.d.ts +184 -0
  16. package/lib/types/tool.d.ts +123 -0
  17. package/package.json +58 -3
  18. package/runtime/win32-x64/checksums.sha256 +91 -0
  19. package/runtime/win32-x64/etc/bash.bashrc +69 -0
  20. package/runtime/win32-x64/etc/fstab +6 -0
  21. package/runtime/win32-x64/etc/msystem +27 -0
  22. package/runtime/win32-x64/etc/msystem.d/CLANG64 +7 -0
  23. package/runtime/win32-x64/etc/msystem.d/CLANGARM64 +7 -0
  24. package/runtime/win32-x64/etc/msystem.d/MINGW32 +7 -0
  25. package/runtime/win32-x64/etc/msystem.d/MINGW64 +7 -0
  26. package/runtime/win32-x64/etc/msystem.d/MSYS +4 -0
  27. package/runtime/win32-x64/etc/msystem.d/UCRT64 +7 -0
  28. package/runtime/win32-x64/etc/nsswitch.conf +12 -0
  29. package/runtime/win32-x64/etc/package-versions.txt +67 -0
  30. package/runtime/win32-x64/etc/profile +146 -0
  31. package/runtime/win32-x64/etc/profile.d/bash_profile.sh +11 -0
  32. package/runtime/win32-x64/etc/profile.d/lang.sh +19 -0
  33. package/runtime/win32-x64/licenses/GPL-2.0.txt +338 -0
  34. package/runtime/win32-x64/licenses/GPL-3.0.txt +674 -0
  35. package/runtime/win32-x64/licenses/LGPL-2.1.txt +501 -0
  36. package/runtime/win32-x64/licenses/LGPL-3.0.txt +165 -0
  37. package/runtime/win32-x64/licenses/expat-COPYING.txt +21 -0
  38. package/runtime/win32-x64/licenses/gcc-libs-RUNTIME.LIBRARY.EXCEPTION.txt +73 -0
  39. package/runtime/win32-x64/licenses/gettext-runtime-COPYING.LIB.txt +501 -0
  40. package/runtime/win32-x64/licenses/gettext-runtime-COPYING.txt +13 -0
  41. package/runtime/win32-x64/licenses/git-for-windows-LICENSE.txt +360 -0
  42. package/runtime/win32-x64/licenses/heimdal-LICENSE.txt +33 -0
  43. package/runtime/win32-x64/licenses/libcbor-LICENSE.md +21 -0
  44. package/runtime/win32-x64/licenses/libffi-LICENSE.txt +21 -0
  45. package/runtime/win32-x64/licenses/libfido2-LICENSE.txt +26 -0
  46. package/runtime/win32-x64/licenses/libiconv-COPYING.LIB.txt +501 -0
  47. package/runtime/win32-x64/licenses/libiconv-COPYING.txt +674 -0
  48. package/runtime/win32-x64/licenses/libopenssl-LICENSE.txt +177 -0
  49. package/runtime/win32-x64/licenses/libpcre-LICENCE.txt +93 -0
  50. package/runtime/win32-x64/licenses/libsqlite-LICENSE +25 -0
  51. package/runtime/win32-x64/licenses/ncurses-LICENSE +29 -0
  52. package/runtime/win32-x64/licenses/openssh-LICENCE.txt +412 -0
  53. package/runtime/win32-x64/licenses/zlib-LICENSE +22 -0
  54. package/runtime/win32-x64/usr/bin/awk.exe +0 -0
  55. package/runtime/win32-x64/usr/bin/b2sum.exe +0 -0
  56. package/runtime/win32-x64/usr/bin/basename.exe +0 -0
  57. package/runtime/win32-x64/usr/bin/basenc.exe +0 -0
  58. package/runtime/win32-x64/usr/bin/bash.exe +0 -0
  59. package/runtime/win32-x64/usr/bin/cat.exe +0 -0
  60. package/runtime/win32-x64/usr/bin/cmp.exe +0 -0
  61. package/runtime/win32-x64/usr/bin/comm.exe +0 -0
  62. package/runtime/win32-x64/usr/bin/cp.exe +0 -0
  63. package/runtime/win32-x64/usr/bin/cut.exe +0 -0
  64. package/runtime/win32-x64/usr/bin/dash.exe +0 -0
  65. package/runtime/win32-x64/usr/bin/date.exe +0 -0
  66. package/runtime/win32-x64/usr/bin/diff.exe +0 -0
  67. package/runtime/win32-x64/usr/bin/diff3.exe +0 -0
  68. package/runtime/win32-x64/usr/bin/dirname.exe +0 -0
  69. package/runtime/win32-x64/usr/bin/echo.exe +0 -0
  70. package/runtime/win32-x64/usr/bin/env.exe +0 -0
  71. package/runtime/win32-x64/usr/bin/expr.exe +0 -0
  72. package/runtime/win32-x64/usr/bin/false.exe +0 -0
  73. package/runtime/win32-x64/usr/bin/find.exe +0 -0
  74. package/runtime/win32-x64/usr/bin/grep.exe +0 -0
  75. package/runtime/win32-x64/usr/bin/head.exe +0 -0
  76. package/runtime/win32-x64/usr/bin/ls.exe +0 -0
  77. package/runtime/win32-x64/usr/bin/mkdir.exe +0 -0
  78. package/runtime/win32-x64/usr/bin/mktemp.exe +0 -0
  79. package/runtime/win32-x64/usr/bin/msys-2.0.dll +0 -0
  80. package/runtime/win32-x64/usr/bin/msys-gcc_s-seh-1.dll +0 -0
  81. package/runtime/win32-x64/usr/bin/msys-gmp-10.dll +0 -0
  82. package/runtime/win32-x64/usr/bin/msys-iconv-2.dll +0 -0
  83. package/runtime/win32-x64/usr/bin/msys-intl-8.dll +0 -0
  84. package/runtime/win32-x64/usr/bin/msys-mpfr-6.dll +0 -0
  85. package/runtime/win32-x64/usr/bin/msys-ncursesw6.dll +0 -0
  86. package/runtime/win32-x64/usr/bin/msys-pcre-1.dll +0 -0
  87. package/runtime/win32-x64/usr/bin/msys-readline8.dll +0 -0
  88. package/runtime/win32-x64/usr/bin/mv.exe +0 -0
  89. package/runtime/win32-x64/usr/bin/pathchk.exe +0 -0
  90. package/runtime/win32-x64/usr/bin/printf.exe +0 -0
  91. package/runtime/win32-x64/usr/bin/pwd.exe +0 -0
  92. package/runtime/win32-x64/usr/bin/readlink.exe +0 -0
  93. package/runtime/win32-x64/usr/bin/rm.exe +0 -0
  94. package/runtime/win32-x64/usr/bin/rmdir.exe +0 -0
  95. package/runtime/win32-x64/usr/bin/sdiff.exe +0 -0
  96. package/runtime/win32-x64/usr/bin/sed.exe +0 -0
  97. package/runtime/win32-x64/usr/bin/seq.exe +0 -0
  98. package/runtime/win32-x64/usr/bin/sh.exe +0 -0
  99. package/runtime/win32-x64/usr/bin/sleep.exe +0 -0
  100. package/runtime/win32-x64/usr/bin/sort.exe +0 -0
  101. package/runtime/win32-x64/usr/bin/tail.exe +0 -0
  102. package/runtime/win32-x64/usr/bin/test.exe +0 -0
  103. package/runtime/win32-x64/usr/bin/touch.exe +0 -0
  104. package/runtime/win32-x64/usr/bin/tr.exe +0 -0
  105. package/runtime/win32-x64/usr/bin/true.exe +0 -0
  106. package/runtime/win32-x64/usr/bin/uname.exe +0 -0
  107. package/runtime/win32-x64/usr/bin/uniq.exe +0 -0
  108. package/runtime/win32-x64/usr/bin/wc.exe +0 -0
  109. package/runtime/win32-x64/usr/bin/xargs.exe +0 -0
  110. package/src/background.ts +270 -0
  111. package/src/config.ts +209 -0
  112. package/src/gate.ts +308 -0
  113. package/src/index.ts +277 -0
  114. package/src/protocol.ts +130 -0
  115. package/src/pwsh-replacement.ts +435 -0
  116. package/src/runtime.ts +240 -0
  117. package/src/shell.ts +630 -0
  118. package/src/tool.ts +481 -0
@@ -0,0 +1,91 @@
1
+ 2d6e33b3e892e2b4abf9079eaac95da0fe3875e325a0c34dc566d15957df3037 etc/bash.bashrc
2
+ 50718b489a9ef0d4590ef6725f903166c50b6291fb1d9a8c86ff8d221b921aea etc/fstab
3
+ 74bd56de00e49c3917deca2ede723eecd1312a86357b100ae8aabd219f6e7d5e etc/msystem
4
+ f2b01902f08feb07fed47f5ffea3462764034abc19e9ddf3aa6f20f93afeaab6 etc/msystem.d/CLANG64
5
+ 82859ae69d40de560d03c0a59e38e8b3405293003c1d24237f6bbd5efe3c87ef etc/msystem.d/CLANGARM64
6
+ 809ff47346e21e0e1d285e64f3e0975e7345e311e98bb4e100c8da15e1426d9b etc/msystem.d/MINGW32
7
+ 879495ad6b15f59ec2057551e06fb2917715c66de80f5bf915d6176d78e50eee etc/msystem.d/MINGW64
8
+ b166ab9772874471695f5beb16f5c39b6207c937353d0aa9079cbe756432df1d etc/msystem.d/MSYS
9
+ 240fa8efb6fe4b7dae826f5f6d481e41a09913462fe61b5a4ff036d6daa7a835 etc/msystem.d/UCRT64
10
+ 0823a988d6c923855be5565bed6f1900e1899ee60513a58ad550389bed276f14 etc/nsswitch.conf
11
+ 17e1ee29212a294f0bc384bd322b64893a6f9c7b6f8eeec1809272c2cfc8d13c etc/package-versions.txt
12
+ 0052386cec2a94dedc0cb11f59da6e64ca8e26289edf935a7d9b9d5d2a87c902 etc/profile
13
+ 02d38e480a1ec4227e94a5aa073945901680aa3387e3386f8b77f10426ebbc75 etc/profile.d/bash_profile.sh
14
+ 6c0ca979c7b146b3750103b1296a399764f4e1b222ee091d3aa072b6da16c1a5 etc/profile.d/lang.sh
15
+ edaef632cbb643e4e7a221717a6c441a4c1a7c918e6e4d56debc3d8739b233f6 licenses/GPL-2.0.txt
16
+ 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 licenses/GPL-3.0.txt
17
+ 20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95 licenses/LGPL-2.1.txt
18
+ e3a994d82e644b03a792a930f574002658412f62407f5fee083f2555c5f23118 licenses/LGPL-3.0.txt
19
+ 31b15de82aa19a845156169a17a5488bf597e561b2c318d159ed583139b25e87 licenses/expat-COPYING.txt
20
+ 9d6b43ce4d8de0c878bf16b54d8e7a10d9bd42b75178153e3af6a815bdc90f74 licenses/gcc-libs-RUNTIME.LIBRARY.EXCEPTION.txt
21
+ 20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95 licenses/gettext-runtime-COPYING.LIB.txt
22
+ 7ef2cdfe58e0c0460657b6598b49af29d4e03c1e41cbaf0e1da1eb8ad74b95d0 licenses/gettext-runtime-COPYING.txt
23
+ 5b2198d1645f767585e8a88ac0499b04472164c0d2da22e75ecf97ef443ab32e licenses/git-for-windows-LICENSE.txt
24
+ 0c4b07bf5b98f7a1d01f8e60722d6c6747ef052c2aa6d2043daf690d4e1b0a7f licenses/heimdal-LICENSE.txt
25
+ 6a5e182d758db66ecad6e6fa304dc637d4d2585bafceb5003c86e8dc9f6344ff licenses/libcbor-LICENSE.md
26
+ d5699fa516968e3a1550e6c902b7441c78856f2603d61bedd0b0662a26655366 licenses/libffi-LICENSE.txt
27
+ 4aad6cad5e570c10cccd1a6124bf2690eedb548b709fede991ed41326122ee2a licenses/libfido2-LICENSE.txt
28
+ 20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95 licenses/libiconv-COPYING.LIB.txt
29
+ 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 licenses/libiconv-COPYING.txt
30
+ 7d5450cb2d142651b8afa315b5f238efc805dad827d91ba367d8516bc9d49e7a licenses/libopenssl-LICENSE.txt
31
+ 51b3dea44f63338b84b9c97b3d793826a8397309068cf9379a423216ab8ea5b2 licenses/libpcre-LICENCE.txt
32
+ 0b76663a90e034f3d7f2af5bfada4cedec5ebc275361899eccc5c18e6f01ff1f licenses/libsqlite-LICENSE
33
+ 708999f95527e1ffa670c6fce288c6c600cb477dd04afcc1171422b3dd4ee226 licenses/ncurses-LICENSE
34
+ 5bb5b160726ef5756e4f32fe95b35249c294962419650f48d05134b486d27ccb licenses/openssh-LICENCE.txt
35
+ e32ff4e00d9d94930537635291da39e7e612703334bf6fde8c7f1686fe8a45a2 licenses/zlib-LICENSE
36
+ f123d2c120b2ad2158aa8c69d8eeedf14c0d681e68ee76ff103e06ac49986200 usr/bin/awk.exe
37
+ 604deb03fc039e3588a782010774a9d7b4f785f015323a4f4739ac26070569a4 usr/bin/b2sum.exe
38
+ 6fe2e201a956304503f808d0909a26d9b49e1a7e99f6ee6d93721ac4a76a7c6e usr/bin/basename.exe
39
+ 39a435a6a46a997417630bbc5374e89f3d34673eb10e65cee6122a6bb547d47e usr/bin/basenc.exe
40
+ 5490d0da5e7cf9d92068cc48fcc590f2bcf8564add8ff91c3b5fe541eb2d72e3 usr/bin/bash.exe
41
+ f1b37048ee5c70fdc31dde509e562261c9b2d102d94c903393f55b45e883ef90 usr/bin/cat.exe
42
+ 9436e2a0a92e8f31e02077785f075fb62d05074d4ce257c53434b93497b0eb2d usr/bin/cmp.exe
43
+ 7b1a630adb1d85b4f3dd8247a45a914ead7bc34e8b72b8c4a1f12baa82aa80f4 usr/bin/comm.exe
44
+ 5f91e0b445edb4e4c17e9a660ac29239f6cac5a821a173a86d4332b9eaa8cea3 usr/bin/cp.exe
45
+ 63fcfb76c80d57538312a9637429d5a4b99ac83e8b00d95684609b4c045471e9 usr/bin/cut.exe
46
+ 61dc29be7b19d8f5facffbf0c1b6df7d40f064743f9902d2e51d51f4409f762d usr/bin/dash.exe
47
+ 743228ae082e1128a2aff02414e114dc45a51f7461775bc5750d89307f3ccdac usr/bin/date.exe
48
+ d64621f766d8910a92cb3d99bd7f23c0b1c736eece0e19dccbccead93aa81854 usr/bin/diff.exe
49
+ 913e23ff6b2f9dc204b92a181ac993e3ce7c8c5bcd68db3f7662224a1896a975 usr/bin/diff3.exe
50
+ 53896fda354605a1a1d1f5e6802daba5ba6c05961f3074b892194e068aa82772 usr/bin/dirname.exe
51
+ 629697ea64fad72bceda3b2a6fe3c60c79e1a55e0a79de54f04ddf840907cf41 usr/bin/echo.exe
52
+ b5d80f13e6b4b422a8c22d32be9cc1f5fd9b482fc60008ed80e513a2fa938cdc usr/bin/env.exe
53
+ e1608f26781374b67f180370dc50c833bfc61946aadfb433e48536590bb79219 usr/bin/expr.exe
54
+ 71314347cf1355d1fd818d62fe11cf6b58373e70170a273335d38a8bacb987d6 usr/bin/false.exe
55
+ 1729ceebf52cf72bf1fc955af8167f2ba8ecbffa928fa386818affc5a60224fd usr/bin/find.exe
56
+ 497202418334f8a48d9f34cd2e1b2c03c4f957e02304b613e10931c0457e8d4a usr/bin/grep.exe
57
+ c82ae2ef72235a34db7007580628cd5183cb350878a10fcc98b6ef26b92a3537 usr/bin/head.exe
58
+ b45981580702029cfeeffc8ca69e2a4d1e9c68914009e94c31ffec9cbc544aa5 usr/bin/ls.exe
59
+ fc9b9e49fd6496cdddfc5681208d74bd649ac934818eafdfd50a9571bdcb4861 usr/bin/mkdir.exe
60
+ bd6474b0404e52b195296438342f38e510fe1a4c1c0d91ceb83cf8411959fecb usr/bin/mktemp.exe
61
+ 2a89b7c31b323c42e2fb37900af087aeb27417694e630a210bc75b0369410bc7 usr/bin/msys-2.0.dll
62
+ 59b816ee2880c2140ac8d7726f59e4e7435e309f272a80fd590d3130215f77f5 usr/bin/msys-gcc_s-seh-1.dll
63
+ e3d88ffc1bd3bb3bdda1d84f3f823e6f0f07c89dfd17e2d003c588f56dd80784 usr/bin/msys-gmp-10.dll
64
+ 50012969ed96a5232220185d2fc1ac1e3abe5790f6b3027f4fc3c4cad3fd38f0 usr/bin/msys-iconv-2.dll
65
+ 50f7de0c712d867ddca2c9eb8562ca6ee2d69e120e798ec6126ad29dd1ed5402 usr/bin/msys-intl-8.dll
66
+ 7be008ed823d8ce65a205669c44fd8ad56eee5838111101d29c6684f8eccc4f4 usr/bin/msys-mpfr-6.dll
67
+ aef26ffbcd20ee5781c3a5e81265390494090e13561a13336d000d9d5f9a84cb usr/bin/msys-ncursesw6.dll
68
+ a94b1a5ba095ac7ff81e138a1231e42e3a07391e85eeb86c3bb5c9245244597a usr/bin/msys-pcre-1.dll
69
+ 0c7c38f1b76e087add0faca414659c3d25008a893dd4b185604a4183bb68132b usr/bin/msys-readline8.dll
70
+ 0e990f9314e17eaf2eed168561313e0b6e1d21daf8fb6400387026c6da7277a1 usr/bin/mv.exe
71
+ 36afccc7251e0b1a5b2a7c54fe022d13a122c2479028b0f01e653084e79281e9 usr/bin/pathchk.exe
72
+ dbc52ee41a9d2fc4cdad6d690e430c6b630ce5fb5837d66d6b47cf59ea63b198 usr/bin/printf.exe
73
+ d1281cecce65fc76750381698faca130216ffacc6396886d63a85ad28a3071aa usr/bin/pwd.exe
74
+ 3617334c256348026305e7a978bb803c45c31e2f4d24c763e1f11361ceb1d58c usr/bin/readlink.exe
75
+ a845f7517a49b49726e056da8a8f65a6d9ce96fbe79c3664c082521eea0f80e7 usr/bin/rm.exe
76
+ 7d91cc7b4e7a297a74dcdb621ff19b495db14a8a96612a737fc870403fc6775c usr/bin/rmdir.exe
77
+ 1ebf31bdfe552d728c940866ffb0753a745e9699b69c79013d8766242d6714a6 usr/bin/sdiff.exe
78
+ 8d54e322dfc3faa60f0464691aba8634197406e53367aa8942409181c0808be8 usr/bin/sed.exe
79
+ 6e5c79fce1d50d888b38f5a0a02a314265e733f151e8b9d2c953b363a60d27d0 usr/bin/seq.exe
80
+ 5490d0da5e7cf9d92068cc48fcc590f2bcf8564add8ff91c3b5fe541eb2d72e3 usr/bin/sh.exe
81
+ 3dfa2435317339e861121c1bd22e57b7b67c204705f00a88b5ac10a0cba87514 usr/bin/sleep.exe
82
+ 7c5df851d821e23988641f35442a06652ce834ed724456511798ce60314cab9a usr/bin/sort.exe
83
+ 8608c4138642de6dca0806b266b3009c137dc373171978cf47418056a5e05c55 usr/bin/tail.exe
84
+ bc151f331dbbe8d8558014bc55b983d20effd4ebbea04d2a29b6badf879ce423 usr/bin/test.exe
85
+ 1d895e0f77cbc8b77c3a38da009e8ad8d23a371afd398da5408bdeffcddf5fc0 usr/bin/touch.exe
86
+ 7cf90be63820ba9ec66a10c0c4af84f0a2e3ec90a722ea6904219ec0b93bf1c1 usr/bin/tr.exe
87
+ e3ce235425032cc3e1262f46b414b1b88f971724104916690f24e25c4663d474 usr/bin/true.exe
88
+ 1cba275ff8e0c81f48898f017758c558ee5951cb0448c36628580beffdf4ef89 usr/bin/uname.exe
89
+ 07e78095a79870b52ac988989faa5ff8446e1a8cdc861165d7eb93904fff5211 usr/bin/uniq.exe
90
+ 3ab05efc4703295f0d36fd48da17f2021219494fb932a062a535ae17ea9f45b3 usr/bin/wc.exe
91
+ 14097e707f43f2c1e4b60a72a02e1e7a950faddc48b7cbe81b6a2ee037811fa0 usr/bin/xargs.exe
@@ -0,0 +1,69 @@
1
+ # To the extent possible under law, the author(s) have dedicated all
2
+ # copyright and related and neighboring rights to this software to the
3
+ # public domain worldwide. This software is distributed without any warranty.
4
+ # You should have received a copy of the CC0 Public Domain Dedication along
5
+ # with this software.
6
+ # If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
7
+
8
+ # /etc/bash.bashrc: executed by bash(1) for interactive shells.
9
+
10
+ # System-wide bashrc file
11
+
12
+ # Check that we haven't already been sourced.
13
+ ([[ -z ${CYG_SYS_BASHRC} ]] && CYG_SYS_BASHRC="1") || return
14
+
15
+ # If not running interactively, don't do anything
16
+ [[ "$-" != *i* ]] && return
17
+
18
+ # If started from sshd, make sure profile is sourced
19
+ if [[ -n "$SSH_CONNECTION" ]] && [[ "$PATH" != *:/usr/bin* ]]; then
20
+ source /etc/profile
21
+ fi
22
+
23
+ # Warnings
24
+ unset _warning_found
25
+ for _warning_prefix in '' ${MINGW_PREFIX}; do
26
+ for _warning_file in ${_warning_prefix}/etc/profile.d/*.warning{.once,}; do
27
+ test -f "${_warning_file}" || continue
28
+ _warning="$(command sed 's/^/\t\t/' "${_warning_file}" 2>/dev/null)"
29
+ if test -n "${_warning}"; then
30
+ if test -z "${_warning_found}"; then
31
+ _warning_found='true'
32
+ echo
33
+ fi
34
+ if test -t 1
35
+ then printf "\t\e[1;33mwarning:\e[0m\n${_warning}\n\n"
36
+ else printf "\twarning:\n${_warning}\n\n"
37
+ fi
38
+ fi
39
+ [[ "${_warning_file}" = *.once ]] && rm -f "${_warning_file}"
40
+ done
41
+ done
42
+ unset _warning_found
43
+ unset _warning_prefix
44
+ unset _warning_file
45
+ unset _warning
46
+
47
+ # If MSYS2_PS1 is set, use that as default PS1;
48
+ # if a PS1 is already set and exported, use that;
49
+ # otherwise set a default prompt
50
+ # of user@host, MSYSTEM variable, and current_directory
51
+ [[ -n "${MSYS2_PS1}" ]] && export PS1="${MSYS2_PS1}"
52
+ # if we have the "High Mandatory Level" group, it means we're elevated
53
+ #if [[ -n "$(command -v getent)" ]] && id -G | grep -q "$(getent -w group 'S-1-16-12288' | cut -d: -f2)"
54
+ # then _ps1_symbol='\[\e[1m\]#\[\e[0m\]'
55
+ # else _ps1_symbol='\$'
56
+ #fi
57
+ case "$(declare -p PS1 2>/dev/null)" in
58
+ 'declare -x '*) ;; # okay
59
+ *)
60
+ export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n'"${_ps1_symbol}"' '
61
+ ;;
62
+ esac
63
+ unset _ps1_symbol
64
+
65
+ # Uncomment to use the terminal colours set in DIR_COLORS
66
+ # eval "$(dircolors -b /etc/DIR_COLORS)"
67
+
68
+ # Fixup git-bash in non login env
69
+ shopt -q login_shell || . /etc/profile.d/git-prompt.sh
@@ -0,0 +1,6 @@
1
+ # For a description of the file format, see the Users Guide
2
+ # https://cygwin.com/cygwin-ug-net/using.html#mount-table
3
+
4
+ # DO NOT REMOVE NEXT LINE. It remove cygdrive prefix from path
5
+ none / cygdrive binary,posix=0,noacl,user 0 0
6
+ none /tmp usertemp binary,posix=0,noacl 0 0
@@ -0,0 +1,27 @@
1
+ # MSYSTEM Environment Information
2
+ # Copyright (C) 2016 Renato Silva
3
+ # Licensed under public domain
4
+
5
+ # Once sourced, this script provides common information associated with the
6
+ # current MSYSTEM. For example, the compiler architecture and host type.
7
+
8
+ # The MSYSTEM_ prefix is used for avoiding too generic names. For example,
9
+ # makepkg is sensitive to the value of CARCH, so MSYSTEM_CARCH is defined
10
+ # instead. The MINGW_ prefix does not influence makepkg-mingw variables and
11
+ # is not used for the MSYS shell.
12
+
13
+ export MSYSTEM="${MSYSTEM:-MSYS}"
14
+
15
+ unset MSYSTEM_PREFIX
16
+ unset MSYSTEM_CARCH
17
+ unset MSYSTEM_CHOST
18
+
19
+ unset MINGW_CHOST
20
+ unset MINGW_PREFIX
21
+ unset MINGW_PACKAGE_PREFIX
22
+
23
+ if [ -e "/etc/msystem.d/${MSYSTEM}" ]; then
24
+ source "/etc/msystem.d/${MSYSTEM}"
25
+ else
26
+ source "/etc/msystem.d/MSYS"
27
+ fi
@@ -0,0 +1,7 @@
1
+ MSYSTEM_PREFIX='/clang64'
2
+ MSYSTEM_CARCH='x86_64'
3
+ MSYSTEM_CHOST='x86_64-w64-mingw32'
4
+ MINGW_CHOST="${MSYSTEM_CHOST}"
5
+ MINGW_PREFIX="${MSYSTEM_PREFIX}"
6
+ MINGW_PACKAGE_PREFIX="mingw-w64-clang-${MSYSTEM_CARCH}"
7
+ export MSYSTEM_PREFIX MSYSTEM_CARCH MSYSTEM_CHOST MINGW_CHOST MINGW_PREFIX MINGW_PACKAGE_PREFIX
@@ -0,0 +1,7 @@
1
+ MSYSTEM_PREFIX='/clangarm64'
2
+ MSYSTEM_CARCH='aarch64'
3
+ MSYSTEM_CHOST='aarch64-w64-mingw32'
4
+ MINGW_CHOST="${MSYSTEM_CHOST}"
5
+ MINGW_PREFIX="${MSYSTEM_PREFIX}"
6
+ MINGW_PACKAGE_PREFIX="mingw-w64-clang-${MSYSTEM_CARCH}"
7
+ export MSYSTEM_PREFIX MSYSTEM_CARCH MSYSTEM_CHOST MINGW_CHOST MINGW_PREFIX MINGW_PACKAGE_PREFIX
@@ -0,0 +1,7 @@
1
+ MSYSTEM_PREFIX='/mingw32'
2
+ MSYSTEM_CARCH='i686'
3
+ MSYSTEM_CHOST='i686-w64-mingw32'
4
+ MINGW_CHOST="${MSYSTEM_CHOST}"
5
+ MINGW_PREFIX="${MSYSTEM_PREFIX}"
6
+ MINGW_PACKAGE_PREFIX="mingw-w64-${MSYSTEM_CARCH}"
7
+ export MSYSTEM_PREFIX MSYSTEM_CARCH MSYSTEM_CHOST MINGW_CHOST MINGW_PREFIX MINGW_PACKAGE_PREFIX
@@ -0,0 +1,7 @@
1
+ MSYSTEM_PREFIX='/mingw64'
2
+ MSYSTEM_CARCH='x86_64'
3
+ MSYSTEM_CHOST='x86_64-w64-mingw32'
4
+ MINGW_CHOST="${MSYSTEM_CHOST}"
5
+ MINGW_PREFIX="${MSYSTEM_PREFIX}"
6
+ MINGW_PACKAGE_PREFIX="mingw-w64-${MSYSTEM_CARCH}"
7
+ export MSYSTEM_PREFIX MSYSTEM_CARCH MSYSTEM_CHOST MINGW_CHOST MINGW_PREFIX MINGW_PACKAGE_PREFIX
@@ -0,0 +1,4 @@
1
+ MSYSTEM_PREFIX='/usr'
2
+ MSYSTEM_CARCH="$(/usr/bin/uname -m)"
3
+ MSYSTEM_CHOST="${MSYSTEM_CARCH}-pc-cygwin"
4
+ export MSYSTEM_PREFIX MSYSTEM_CARCH MSYSTEM_CHOST
@@ -0,0 +1,7 @@
1
+ MSYSTEM_PREFIX='/ucrt64'
2
+ MSYSTEM_CARCH='x86_64'
3
+ MSYSTEM_CHOST='x86_64-w64-mingw32'
4
+ MINGW_CHOST="${MSYSTEM_CHOST}"
5
+ MINGW_PREFIX="${MSYSTEM_PREFIX}"
6
+ MINGW_PACKAGE_PREFIX="mingw-w64-ucrt-${MSYSTEM_CARCH}"
7
+ export MSYSTEM_PREFIX MSYSTEM_CARCH MSYSTEM_CHOST MINGW_CHOST MINGW_PREFIX MINGW_PACKAGE_PREFIX
@@ -0,0 +1,12 @@
1
+ # Begin /etc/nsswitch.conf
2
+
3
+ passwd: files db
4
+ group: files # db
5
+
6
+ db_enum: cache builtin
7
+
8
+ db_home: env windows cygwin desc
9
+ db_shell: env windows # cygwin desc
10
+ db_gecos: env # cygwin desc
11
+
12
+ # End /etc/nsswitch.conf
@@ -0,0 +1,67 @@
1
+ gawk 5.4.1-1
2
+ coreutils 8.32-5
3
+ diffutils 3.12-1
4
+ findutils 4.11.0-2
5
+ gcc-libs 15.3.0-1
6
+ gmp 6.3.0-2
7
+ grep 1~3.0-7
8
+ heimdal-libs 7.8.0-5
9
+ libcbor 0.11.0-1
10
+ libfido2 1.15.0-1
11
+ libiconv 1.19-1
12
+ libintl 0.22.5-1
13
+ libopenssl 3.5.9-1
14
+ libpcre 8.45-5
15
+ libreadline 8.3.006-1
16
+ libsqlite 3.53.4-1
17
+ libxcrypt 4.5.2-1
18
+ mingw-w64-ucrt-x86_64-brotli 1.2.0-1
19
+ mingw-w64-ucrt-x86_64-ca-certificates 20260816-1
20
+ mingw-w64-ucrt-x86_64-cc-libs 16.2.0-4
21
+ mingw-w64-ucrt-x86_64-curl-winssl 8.22.0-2
22
+ mingw-w64-ucrt-x86_64-curl-openssl-alternate 8.22.0-2
23
+ mingw-w64-ucrt-x86_64-curl-winssl 8.22.0-2
24
+ mingw-w64-ucrt-x86_64-docx2txt-rs 0.2.0-1
25
+ mingw-w64-ucrt-x86_64-expat 2.8.5-1
26
+ mingw-w64-ucrt-x86_64-gcc-libs 16.2.0-4
27
+ mingw-w64-ucrt-x86_64-gettext-runtime 1.0-1
28
+ mingw-w64-ucrt-x86_64-git 2.56.0.2-1
29
+ mingw-w64-ucrt-x86_64-git-credential-manager 2.9.1-1
30
+ mingw-w64-ucrt-x86_64-git-credential-wincred 2.56.0.2-1
31
+ mingw-w64-ucrt-x86_64-git-extra 1.1.715.85f886165-1
32
+ mingw-w64-ucrt-x86_64-git-for-windows-addons 2.56.0.2-1
33
+ mingw-w64-ucrt-x86_64-git-gui 2.56.0.2-1
34
+ mingw-w64-ucrt-x86_64-git-perl 2.56.0.2-1
35
+ mingw-w64-ucrt-x86_64-git-send-email 2.56.0.2-1
36
+ mingw-w64-ucrt-x86_64-git-subtree 2.56.0.2-1
37
+ mingw-w64-ucrt-x86_64-gitk 2.56.0.2-1
38
+ mingw-w64-ucrt-x86_64-libatomic 16.2.0-4
39
+ mingw-w64-ucrt-x86_64-libffi 3.8.0-1
40
+ mingw-w64-ucrt-x86_64-libgcc 16.2.0-4
41
+ mingw-w64-ucrt-x86_64-libgomp 16.2.0-4
42
+ mingw-w64-ucrt-x86_64-libiconv 1.19-1
43
+ mingw-w64-ucrt-x86_64-libidn2 2.3.8-4
44
+ mingw-w64-ucrt-x86_64-libpsl 0.21.5-3
45
+ mingw-w64-ucrt-x86_64-libquadmath 16.2.0-4
46
+ mingw-w64-ucrt-x86_64-libssh2-wincng 1.11.1-2
47
+ mingw-w64-ucrt-x86_64-libssh2-wincng 1.11.1-2
48
+ mingw-w64-ucrt-x86_64-libstdc++ 16.2.0-4
49
+ mingw-w64-ucrt-x86_64-libtasn1 4.21.0-1
50
+ mingw-w64-ucrt-x86_64-libunistring 1.4.2-1
51
+ mingw-w64-ucrt-x86_64-libwinpthread 14.0.0.r426.g4564ee4b5-1
52
+ mingw-w64-ucrt-x86_64-nghttp2 1.70.0-1
53
+ mingw-w64-ucrt-x86_64-openssl 3.5.9-1
54
+ mingw-w64-ucrt-x86_64-pcre2 10.49-1
55
+ mingw-w64-ucrt-x86_64-zlib 1.3.2-2
56
+ mingw-w64-ucrt-x86_64-zstd 1.5.7-2
57
+ mpfr 4.2.2-1
58
+ msys2-runtime 3.6.10-4
59
+ ncurses 6.6-2
60
+ openssh 10.5p1-1
61
+ openssl 3.5.9-1
62
+ sed 4.9-1
63
+ bash 5.3.015-2
64
+ zlib 1.3.2-1
65
+ filesystem 2026.03.06-1
66
+ dash 0.5.13.4-1
67
+ rebase 4.5.0-5
@@ -0,0 +1,146 @@
1
+ # To the extent possible under law, the author(s) have dedicated all
2
+ # copyright and related and neighboring rights to this software to the
3
+ # public domain worldwide. This software is distributed without any warranty.
4
+ # You should have received a copy of the CC0 Public Domain Dedication along
5
+ # with this software.
6
+ # If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
7
+
8
+
9
+ # System-wide profile file
10
+
11
+ # Some resources...
12
+ # Customizing Your Shell: http://www.dsl.org/cookbook/cookbook_5.html#SEC69
13
+ # Consistent BackSpace and Delete Configuration:
14
+ # http://www.ibb.net/~anne/keyboard.html
15
+ # The Linux Documentation Project: https://www.tldp.org/
16
+ # The Linux Cookbook: https://www.tldp.org/LDP/linuxcookbook/html/
17
+ # Greg's Wiki https://mywiki.wooledge.org/
18
+
19
+ # Setup some default paths. Note that this order will allow user installed
20
+ # software to override 'system' software.
21
+ # Modifying these default path settings can be done in different ways.
22
+ # To learn more about startup files, refer to your shell's man page.
23
+
24
+ MSYS2_PATH="/usr/local/bin:/usr/bin:/bin"
25
+ MANPATH='/usr/local/man:/usr/share/man:/usr/man:/share/man'
26
+ INFOPATH='/usr/local/info:/usr/share/info:/usr/info:/share/info'
27
+
28
+ case "${MSYS2_PATH_TYPE:-inherit}" in
29
+ strict)
30
+ # Do not inherit any path configuration, and allow for full customization
31
+ # of external path. This is supposed to be used in special cases such as
32
+ # debugging without need to change this file, but not daily usage.
33
+ unset ORIGINAL_PATH
34
+ ;;
35
+ inherit)
36
+ # Inherit previous path. Note that this will make all of the Windows path
37
+ # available in current shell, with possible interference in project builds.
38
+ ORIGINAL_PATH="${ORIGINAL_PATH:-${PATH}}"
39
+ ;;
40
+ *)
41
+ # Do not inherit any path configuration but configure a default Windows path
42
+ # suitable for normal usage with minimal external interference.
43
+ WIN_ROOT="$(PATH=${MSYS2_PATH} exec cygpath -Wu)"
44
+ ORIGINAL_PATH="${WIN_ROOT}/System32:${WIN_ROOT}:${WIN_ROOT}/System32/Wbem:${WIN_ROOT}/System32/WindowsPowerShell/v1.0/"
45
+ esac
46
+
47
+ unset MINGW_MOUNT_POINT
48
+ . '/etc/msystem'
49
+ case "${MSYSTEM}" in
50
+ MINGW*|CLANG*|UCRT*)
51
+ MINGW_MOUNT_POINT="${MINGW_PREFIX}"
52
+ PATH="${MINGW_MOUNT_POINT}/bin:${MSYS2_PATH}${ORIGINAL_PATH:+:${ORIGINAL_PATH}}"
53
+ PKG_CONFIG_PATH="${MINGW_MOUNT_POINT}/lib/pkgconfig:${MINGW_MOUNT_POINT}/share/pkgconfig"
54
+ PKG_CONFIG_SYSTEM_INCLUDE_PATH="${MINGW_MOUNT_POINT}/include"
55
+ PKG_CONFIG_SYSTEM_LIBRARY_PATH="${MINGW_MOUNT_POINT}/lib"
56
+ ACLOCAL_PATH="${MINGW_MOUNT_POINT}/share/aclocal:/usr/share/aclocal"
57
+ MANPATH="${MINGW_MOUNT_POINT}/local/man:${MINGW_MOUNT_POINT}/share/man:${MANPATH}"
58
+ INFOPATH="${MINGW_MOUNT_POINT}/local/info:${MINGW_MOUNT_POINT}/share/info:${INFOPATH}"
59
+ ;;
60
+ *)
61
+ PATH="${MSYS2_PATH}:/opt/bin${ORIGINAL_PATH:+:${ORIGINAL_PATH}}"
62
+ PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/share/pkgconfig:/lib/pkgconfig"
63
+ esac
64
+
65
+ CONFIG_SITE="/etc/config.site"
66
+
67
+ MAYBE_FIRST_START=false
68
+ if [ ! -d "${HOME}" ]; then
69
+ printf "\e[1;32mMSYS2 is starting for the first time. Executing the initial setup.\e[1;0m\n" 1>&2;
70
+ MAYBE_FIRST_START=true
71
+ fi
72
+
73
+ SYSCONFDIR="${SYSCONFDIR:=/etc}"
74
+
75
+ # TMP and TEMP as defined in the Windows environment must be kept
76
+ # for windows apps, even if started from msys2. However, leaving
77
+ # them set to the default Windows temporary directory or unset
78
+ # can have unexpected consequences for msys2 apps, so we define
79
+ # our own to match GNU/Linux behaviour.
80
+ ORIGINAL_TMP="${ORIGINAL_TMP:-${TMP}}"
81
+ ORIGINAL_TEMP="${ORIGINAL_TEMP:-${TEMP}}"
82
+ #TMP="/tmp"
83
+ #TEMP="/tmp"
84
+ case "$TMP" in *\\*) TMP="$(cygpath -m "$TMP")";; esac
85
+ case "$TEMP" in *\\*) TEMP="$(cygpath -m "$TEMP")";; esac
86
+ test -d "$TMPDIR" || test ! -d "$TMP" || {
87
+ TMPDIR="$TMP"
88
+ export TMPDIR
89
+ }
90
+
91
+
92
+ # Shell dependent settings
93
+ profile_d ()
94
+ {
95
+ local file=
96
+ for file in $(export LC_COLLATE=C; echo /etc/profile.d/*.$1); do
97
+ [ -e "${file}" ] && . "${file}"
98
+ done
99
+
100
+ if [ -n "${MINGW_MOUNT_POINT}" ]; then
101
+ for file in $(export LC_COLLATE=C; echo ${MINGW_MOUNT_POINT}/etc/profile.d/*.$1); do
102
+ [ -e "${file}" ] && . "${file}"
103
+ done
104
+ fi
105
+ }
106
+
107
+ for postinst in $(export LC_COLLATE=C; echo /etc/post-install/*.post); do
108
+ [ -e "${postinst}" ] && . "${postinst}"
109
+ done
110
+
111
+ if [ ! "x${BASH_VERSION}" = "x" ]; then
112
+ [ -z "${HOSTNAME}" ] && HOSTNAME="$(exec /usr/bin/hostname)"
113
+ SHELL=`which bash`
114
+ profile_d sh
115
+ [ -f "/etc/bash.bashrc" ] && . "/etc/bash.bashrc"
116
+ elif [ ! "x${KSH_VERSION}" = "x" ]; then
117
+ [ -z "${HOSTNAME}" ] && typeset -l HOSTNAME="$(exec /usr/bin/hostname)"
118
+ profile_d sh
119
+ PS1=$(print '\033]0;${PWD}\n\033[32m${USER}@${HOSTNAME} \033[33m${PWD/${HOME}/~}\033[0m\n$ ')
120
+ elif [ ! "x${ZSH_VERSION}" = "x" ]; then
121
+ [ -z "${HOSTNAME}" ] && HOSTNAME="$(exec /usr/bin/hostname)"
122
+ profile_d sh
123
+ profile_d zsh
124
+ PS1='(%n@%m)[%h] %~ %% '
125
+ SHELL=`which zsh`
126
+ elif [ ! "x${POSH_VERSION}" = "x" ]; then
127
+ [ -z "${HOSTNAME}" ] && HOSTNAME="$(exec /usr/bin/hostname)"
128
+ PS1="$ "
129
+ else
130
+ [ -z "${HOSTNAME}" ] && HOSTNAME="$(exec /usr/bin/hostname)"
131
+ profile_d sh
132
+ PS1="$ "
133
+ fi
134
+
135
+ if [ -n "$ACLOCAL_PATH" ]
136
+ then
137
+ export ACLOCAL_PATH
138
+ fi
139
+
140
+ export PATH MANPATH INFOPATH PKG_CONFIG_PATH PKG_CONFIG_SYSTEM_INCLUDE_PATH PKG_CONFIG_SYSTEM_LIBRARY_PATH USER TMP TEMP HOSTNAME PS1 SHELL ORIGINAL_TMP ORIGINAL_TEMP ORIGINAL_PATH CONFIG_SITE
141
+ unset PATH_SEPARATOR
142
+
143
+ if [ "$MAYBE_FIRST_START" = "true" ]; then
144
+ printf "\e[1;32mInitial setup complete. MSYS2 is now ready to use.\e[1;0m\n" 1>&2;
145
+ fi
146
+ unset MAYBE_FIRST_START
@@ -0,0 +1,11 @@
1
+ # add ~/.bash_profile if needed for executing ~/.bashrc
2
+ if [ -e ~/.bashrc -a ! -e ~/.bash_profile -a ! -e ~/.bash_login -a ! -e ~/.profile ]; then
3
+ printf "\n\033[31mWARNING: Found ~/.bashrc but no ~/.bash_profile, ~/.bash_login or ~/.profile.\033[m\n\n"
4
+ echo "This looks like an incorrect setup."
5
+ echo "A ~/.bash_profile that loads ~/.bashrc will be created for you."
6
+ cat >~/.bash_profile <<-\EOF
7
+ # generated by Git for Windows
8
+ test -f ~/.profile && . ~/.profile
9
+ test -f ~/.bashrc && . ~/.bashrc
10
+ EOF
11
+ fi
@@ -0,0 +1,19 @@
1
+ # To the extent possible under law, the author(s) have dedicated all
2
+ # copyright and related and neighboring rights to this software to the
3
+ # public domain worldwide. This software is distributed without any warranty.
4
+ # You should have received a copy of the CC0 Public Domain Dedication along
5
+ # with this software.
6
+ # If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
7
+
8
+ # /etc/profile.d/lang.sh: sourced by /etc/profile.
9
+
10
+ # The latest version as installed by the MSYS2 Setup program can
11
+ # always be found at /etc/defaults/etc/profile.d/lang.sh
12
+
13
+ # Modifying /etc/profile.d/lang.sh directly will prevent
14
+ # setup from updating it.
15
+
16
+ # System-wide lang.sh file
17
+
18
+ # if no locale variable is set, indicate terminal charset via LANG
19
+ test -z "${LC_ALL:-${LC_CTYPE:-$LANG}}" && export LANG=$(exec /usr/bin/locale -uU)