Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix 安装 nsh

查看 nsh 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nsh

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nsh

MacPorts ports tree · shells/nsh/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nsh

Alpine Linux edge package indexes · nsh · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#nsh

nixpkgs package indexes · pkgs/by-name/ns/nsh/package.nix · 来源: api.github.com

概览

软件包摘要

Fish-like, POSIX-compatible shell

命令和别名

  • nsh

历史

项目历史与用法

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.

时间线

  • 2018-10-05: GitHub repository created.
  • 2018-12-17: author announced nsh on users.rust-lang.org.
  • 2018-12-19: crates.io package created.
  • 2021-07-21: crates.io metadata updated to version 0.4.2.
  • 2023-02-11: GitHub repository pushed timestamp observed by API query.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:shell

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nshcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.4.2
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v0.4.2

https://github.com/nuta/nsh

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namensh
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

nsh

nix profile install nixpkgs#nsh
  • normalized package name match
  • 匹配方式:Nsh
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ns/nsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

nsh 0.4.2-r1

A command-line shell like fish, but POSIX compatible

https://github.com/nuta/nsh

sudo apk add nsh
  • License: CC0-1.0 OR MIT
  • Architecture: x86_64
  • Source Package: nsh
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nsh from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

nsh-dbg 0.4.2-r1

A command-line shell like fish, but POSIX compatible (debug symbols)

https://github.com/nuta/nsh

sudo apk add nsh-dbg
  • License: CC0-1.0 OR MIT
  • Architecture: x86_64
  • Source Package: nsh
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nsh-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
MacPorts95%

nsh

sudo port install nsh
  • normalized package name match
  • 匹配方式:Nsh
MacPorts ports tree · api.github.com · MacPorts ports tree: shells/nsh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment