DSH plug-in selection directory
lhh010/dsh-bash-encoding · tools
DSH bash output encoding automatic recognition plug-in: replaces ctx.bash, manages spawn to collect raw bytes, automatically detects UTF-16LE/UTF-8/GBK and other encodings and decodes them correctly, and repairs Chinese garbled characters in bash tools under WSL/Windows.
★ 8GitHub stars
1Forks
2026-08-14Last updated
TypeScriptLanguage
BSD-3-ClauseLicense
Key features
- The platform layer windows.cordis.patch.yml has been inserted into pwsh-sandbox (SandboxPwshExecutor), and ctx.bash will be registered like this plug-in
- NUL parity anchor (ASCII subsection, such as wsl: )
- Only one ctx.bash implementation is allowed in the same context, and if enabled at the same time, the startup will fail (service bash has been registered at ).
- This plug-in spawns in bash -c mode and is oriented to POSIX bash combination (replacing dsh-bash-local)
- The Windows native profile uses the pwsh stack and does not have a bash runner, so it is not suitable.
Requirements
- It is automatically processed after dsh plugin/pnpm installation, and the operation is not affected.
Install command
dsh plugin --profile web add github:lhh010/dsh-bash-encoding