+2
Daily
304
stars
16
forks
0
watchers
603
prs
519
issues
50
releases
README
Niubash — native Bash for Windows (Git Bash alternative) Real Bash, native on Windows, Linux, and macOS. No WSL. No VM. No /mnt/c. No cmdlet dialect. One binary: the shell your fingers already know — and the one your AI agent actually speaks. English · 中文 Docs & downloads: unixwin.dev Install · Niubash vs Git Bash · Why not Git Bash / MSYS2 / Cygwin · AI agents · Compatibility · Performance · Limitations niubash is a Bash-compatible shell implemented natively in Rust — a Git Bash alternative. On Windows, the flagship platform, one niu.exe carries the whole stack: - the rubash language engine — GNU Bash 5.3 semantics with no emulation layer; - real Unix commands from WinuxCmd, native builds designed for shell use; - a git-aware prompt and a permission-modeled plugin system; - git itself: niu-git is the real git-for-windows C source built with MSVC, so the git on PATH is the git binary — no MSYS runtime, no launcher hop, no bundled perl. Git's shell-script parts (hooks, git bisect, git mergetool) run on niubash's own sh. Agents launched from a niu session inherit it as their shell through SHELL; Coding agents on Windows documents, agent by agent, which shell each one runs and how to point the rest at niu. The Linux and macOS builds are portable niu binaries that use your system's own tools. niu is not MSYS2, Cygwin, Git Bash, or WSL — there is no POSIX emulation layer and no path-conversion heuristics. It is a from-scratch replacement for Git Bash: a native Windows binary. The full per-platform contract, including the honest status of every target, lives in platform-support.md. The same commands, two outcomes — Git Bash's MSYS layer vs niu, side by side. Tap the image for the animated version (assets/demo-gitbash.gif). Quick start All downloads start at unixwin.dev. Latest release: v1.5.0 (2026-11-03; the releases page always carries the newest build). Windows via winget (1.5.0): powershell winget install --id Unixwin.Niubash Windows via Scoop (1.5.0, portable zip, niu shimmed onto PATH; scoop update niubash follows releases): the Extras-bucket submission (ScoopInstaller/Extras19334) is in review — once it merges, scoop bucket add extras then scoop install niubash. Until then, install from the in-repo reference manifest: powershell scoop install https://raw.githubusercontent.com/unixwin/niubash/master/installer/scoop/niubash.json Windows via installer: grab niubash-v-win--setup.exe from Releases and run it — no admin rights; PATH and a Windows Terminal profile are set up for you. Prefer portable? Take the .tar.gz (tar -xf niubash-v-win-x64.tar.gz, built into Windows 10+) — it restores the bundled git/awk payload's hardlinks on unpack, so the extracted tree stays as small as a wpm install. The .7z is the smallest download (solid compression), but it stores the duplicated payload content rather than links, so the extracted tree is larger. The .zip stays only for tooling that speaks nothing but zip: it cannot repre
Top issues
#633合作邀请45 comments · 2026-10-28#775readline ABI integration: export rl_* in-process and route to the live editor14 comments · 2026-11-01#993Git Bash drop-in report: `set -u` + `${X:=v}`, permission model, `cmd //c`, `command -v` for emulated commands, `/dev` devices12 comments · 2026-11-10#352[perf][P2] Android aarch64 v1.4.0 vs GNU bash 5.3 benchmark matrix: interpreter-bound 2.3-7.3x slower, fork-bound 1.8-5.2x faster, startup +14ms (wrapper #351), RSS 2.2x — root causes filed as rubash#607-60910 comments · 2026-10-14#349[Android][perf] -c arithmetic and function loops are ~1.6-1.8x GNU Bash (gate: <=1.5x)9 comments · 2026-10-14#996[tracking] #993 拆分追踪:12 节 + S1–S11 按面路由(rubash/winuxcmd/host),文档批(§2/§8/§9/§12)已定论为有意分歧4 comments · 2026-11-12#1122niubash中运行gradle任务,结束后ai agent仍认为niubash的任务没结束3 comments · 2026-11-27#955The integration suite is ~10k tests but CI executes only a handful of targets3 comments · 2026-11-06
Latest release
Niubash v1.5.2 v1.5.2 2026-11-25Niubash v1.5.2 packages for Windows, Linux, and macOS. Engine: rubash git d63287553235 — every platform build in this release compiled that same revision, pinned by scripts/release/rubash-pin.json and fail-hard verified at fetch time (rubash827). The release compiles the pinned engine, not "whatever rubash master was when the pipeline ran". Verify locally with niu --version, which prints the same revision. Windows (x64, ARM64): Inno Setup installers (-setup.exe) add user PATH and Windows Terminal profile integration; portable archives bundle niu with WinuxCmd and bash/sh shims. Portable dow