unixwin /niubash

AI-native bash for humans and AI agents: real bash syntax, real Unix commands (winuxcmd), real git via niu-git. Native Windows/Linux/Android/macOS/harmony - no WSL, no MSYS, no fork().

★ 304⑂ 16👁 0⑃ 603● 519▤ 50
RustMITCreated 2026-03-28unixwin.dev/products/niubash/
Download: Niubash v1.5.2Niubash-1.5.2 ↓1.5.22026-11-25
+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

Latest release

Niubash v1.5.2 v1.5.2 2026-11-25
Niubash 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

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON