niubash
RustAI-native 的真·Bash:真语法、真 Unix 命令、原生三平台
AI-native real bash: real syntax, real Unix commands, native on Windows/Linux/macOS.
cmx@unixwin:~$ ./unixwin --introduce --family
AI-native 的真·Bash 家族——真语法、真 Unix 命令、原生 Windows / Linux / macOS,无 WSL、无 MSYS。
AI-native bash family — real syntax, real Unix commands, native Windows / Linux / macOS. No WSL, no MSYS.
cmx@unixwin:~$
six projects · one family
AI-native 的真·Bash:真语法、真 Unix 命令、原生三平台
AI-native real bash: real syntax, real Unix commands, native on Windows/Linux/macOS.
原生 Windows 的 Unix 命令集,单文件约 3MB
Native-Windows Unix command set, single ~3 MB executable.
可嵌入的 GNU Bash 5.3 兼容引擎
Embeddable GNU Bash 5.3-compatible engine.
原生 Windows Git,无 MSYS,~14ms 启动
Native Windows Git without MSYS, ~14 ms startup.
WinuxCmd 内置包管理器,官方索引 288 包
WinuxCmd's built-in package manager with a 288-package official index.
Oh-My 式框架:40+ 主题与插件
Oh-My-style framework: 40+ themes and plugins.
why --real --fast --native
01
GNU Bash 上游 83 套测试套件全部通过,其中 82 套输出与 bash 逐字节一致——存量脚本、别名和 CI 不用改一个字。
suites 83/83 · byte-identical 82 02
Claude Code、Codex、Cursor 都可以把 niubash 直接设为默认 shell;niu -c
单条命令、确定性输出,专为 agent 的反复调用与解析而生。
niu -c 'ls | grep src' 03
git --version 约 ~14ms,Git Bash 要 45–103ms;shell
冷启动 ~170ms,prompt 不卡、补全不顿。
git ~14ms · cold start ~170ms 04
3.79MB 单文件、无 POSIX 模拟层;Windows x64 / ARM64、Linux、macOS 五平台原生构建,一个二进制走到哪都能跑。
3.79MB · 5 platforms
git --version 实测录屏:Git Bash 45–103ms → niu-git ~14ms。quick start · 一行命令
irm https://dl.caomengxuan666.com/install.ps1 | iex wpm install winuxcmd https://github.com/unixwin/niubash/releases wpm update 升级全家桶。niu × claude code
$ claude # Claude Code 启动后检测到 niubash
✓ shell: niubash (rubash engine) — 14ms git, 176+ unix commands
agent> niu -c 'ls | grep src'
src
agent> niu -c 'git log --oneline -1'
f0c0ffe niubash 1.4.0 — 真语法,真命令,原生三平台
agent>
把 niubash 设为默认 shell 后,agent 的每一条命令都跑在真 bash 语法上——输出确定、启动够快,长会话也不掉链子。
tail -f changelogs.json
WinuxCmd 1.1.14
wpm: `wpm links verify` reports, by path, every command link…
niubash 1.4.0
The factory default prompt on Windows is now the Git Bash sk…
rubash 1.4.0
登录 shell 启动链(#487,PR #489):argv[0] 首字符 `-` 或 `-l`/`--login`(…
oh-my-niu 1.0.1
Released first-party `.winux` source packs for Git, Docker, …
a / b / c — pick one