Automic VaultAutomic Vault

brew

nsh を Homebrew, apk, MacPorts, Nix でインストール

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-26
マネージャ版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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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