dsh-bash-encoding

DSH bash 输出编码自动识别插件:替换 ctx.bash,自管 spawn 收集原始字节,自动检测 UTF-16LE/UTF-8/GBK 等编码并正确解码,修复 WSL/Windows 下 bash 工具的中文乱码。

Other UsesBSD-3-Clause☆ 8

Overview

Showing the original project description.

DSH bash 输出编码自动识别插件:替换 ctx.bash,自管 spawn 收集原始字节,自动检测 UTF-16LE/UTF-8/GBK 等编码并正确解码,修复 WSL/Windows 下 bash 工具的中文乱码。

Installation

Install from GitHub

dsh plugin --profile web add github:lhh010/dsh-bash-encoding

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Independent install test

Install result
Installed and registered
Tested Harness version
0.2.2-rc.1
Tested plugin version
Not reported
Test date

Installation notes

  • May run terminal commands
  • May require credentials