macOS
brew install nshlocal Homebrew formula metadata
sudo port install nshMacPorts ports tree · shells/nsh/Portfile · 来源: api.github.com
安装
brew install nshlocal Homebrew formula metadata
sudo port install nshMacPorts ports tree · shells/nsh/Portfile · 来源: api.github.com
sudo apk add nshAlpine Linux edge package indexes · nsh · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#nshnixpkgs package indexes · pkgs/by-name/ns/nsh/package.nix · 来源: api.github.com
概览
Fish-like, POSIX-compatible shell
历史
nsh is a Rust command-line shell that aims to combine fish-like interactive convenience with POSIX-compatible shell syntax and some Bash extensions. Its README lists tab completion, syntax highlighting, Bash completion support by invoking Bash internally, and zero-configuration interactive features.
The GitHub repository was created on October 5, 2018, and the crates.io package was created on December 19, 2018. A Rust users forum announcement from December 17, 2018 framed the motivation as wanting fish-like out-of-the-box features while keeping traditional shell syntax and Bash scripting features.
nsh is an experimental/alpha shell rather than a mainstream login shell. The README explicitly asks for help to make it practical for daily use and notes missing Bash features and likely bugs. Still, it drew developer interest: the GitHub repository had about 963 stars when queried on 2026-07-01, crates.io reported 33,186 total downloads and 20 versions, and Homebrew, MacPorts, Nix, and Alpine package it.
Package users try it as an interactive shell with `nsh`, often via `cargo install nsh` or `brew install nsh`, to get completions and highlighting without adopting fish's non-POSIX language. The realistic usage is experimentation or personal shell sessions, not relying on it as `/bin/sh` for production scripts.
nsh sits in the recurring shell-design niche: keep Bourne/POSIX familiarity, borrow fish's interactive ergonomics, and implement it in Rust. For package catalogs it is best described as an interesting alternative shell with modest packaging footprint and alpha-stage caveats.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
nsh | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:nsh |
|---|---|
| 版本 | 0.4.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/nsh |
| 主页 | https://github.com/nuta/nsh |
| 仓库 | https://github.com/nuta/nsh |
| 上游文档 | https://github.com/nuta/nsh#readme |
| 许可证 | CC0-1.0 OR MIT |
| 源码归档 | https://github.com/nuta/nsh/archive/refs/tags/v0.4.2.tar.gz |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | nsh |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
nsh
nix profile install nixpkgs#nshnsh 0.4.2-r1
A command-line shell like fish, but POSIX compatible
sudo apk add nshnsh-dbg 0.4.2-r1
A command-line shell like fish, but POSIX compatible (debug symbols)
sudo apk add nsh-dbgnsh
sudo port install nsh来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.