BSD Ports

shells/nsh 0.4.2 MidnightBSD

Command-line shell like fish, but POSIX compatible

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
235dc2bfd7
License
mit
Categories
shells

Description

A command-line shell that focuses on productivity and swiftness featuring:

  • A POSIX compliant interactive shell with some Bash extensions.
  • Tab completions and syntax highlighting.
  • Bash completion support (by internally invoking the genuine Bash).
  • Builtin zero configration features.
  • Written in Rust :crab:

In the other systems

The newest version among them is 1.2.3, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDshells/nsh0.4.2no data-[email protected]2026-11-04
FreeBSDshells/nsh0.4.2_45none known-[email protected]2026-10-14
OpenBSDshells/nsh1.2.3p1 newestno data-Tom Smyth <[email protected]>2026-10-14
DragonFlyshells/nsh0.4.2_31none known-[email protected]-
HardenedBSDshells/nsh0.4.2_45no data-[email protected]-
GhostBSDshells/nsh0.4.2_45no data-[email protected]-

Compare across BSDs

Version history 2

  1. 0.4.2 235dc2bfd7
  2. 0.4.2 1ed0f9823e

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install nsh

From mports:

cd /usr/mports/shells/nsh && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	nsh>0:shells/nsh

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
cargo
Service scripts
none

Files

distinfo 109
FileSizeSHA256
rust/crates/nsh-0.4.2.crate71311d3ec0a0cb3c6c897fc82dd2d3db129e21705cb5f47b60198679b7d3141bb1215
rust/crates/addr2line-0.15.2.crate32966e7a2e47a1fbe209ee101dd6d61285226744c6c8d3c21c8dc878ba6cb9f467f3a
rust/crates/adler-1.0.2.crate12778f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe
rust/crates/ansi_term-0.11.0.crate17087ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b
rust/crates/ansi_term-0.12.1.crate24838d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2
rust/crates/arrayref-0.3.6.crate10035a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544
rust/crates/arrayvec-0.5.2.crate2783823b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b
rust/crates/atty-0.2.14.crate5470d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8
rust/crates/autocfg-1.0.1.crate12908cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a
rust/crates/backtrace-0.3.60.crate70983b7815ea54e4d821e791162e078acbebfd6d8c8939cd559c9335dceb1c8ca7282
rust/crates/base64-0.13.0.crate62070904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd
rust/crates/bitflags-1.2.1.crate16745cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693
rust/crates/blake2b_simd-0.5.11.crate34096afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587
rust/crates/block-buffer-0.7.3.crate7179c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b
rust/crates/block-padding-0.1.5.crate7342fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5
rust/crates/byte-tools-0.3.1.crate5526e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7
rust/crates/byteorder-1.4.3.crate2251214c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610
rust/crates/cc-1.0.69.crate56044e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2
rust/crates/cfg-if-1.0.0.crate7934baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
rust/crates/clap-2.33.3.crate20192537e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002
Master sites 1
  • CRATESIO/nsh/${DISTNAME}${CARGO_CRATE_EXT}

Commit history 3

DateCommitCreditsLog message
235dc2bfd7 Lucas Holt Restore ports tree accidentally deleted by Rails PR #2213 (#2232)
Restore the 63,146 unrelated files accidentally deleted when malformed Rails PR #2213 was merged. Retain the intended databases/rubygem-activemodel81 update to 8.1.4.1. Verified the repaired tree has all 63,148 tracked files. Compared with master before #2213 (141a9523ba), only databases/rubygem-activemodel81/Makefile and distinfo differ. The update itself was already built, packaged and hash-verified. The cause was preparing sparse worktrees with an empty index. The remaining Rails branches are receiving corrective commits, with explicit final-tree and per-port diff validation before push. This recovery changes no port semantics beyond the intended ActiveModel update. Signed-off-by: Lucas Holt <[email protected]>
1123a1dfb9 Lucas Holt databases/rubygem-activemodel81: update to 8.1.4.1 for security fixes (#2213)
Update databases/rubygem-activemodel81 to 8.1.4.1. Part of the coordinated Rails security update addressing the 21 advisories published November 4, 2026. Preserve this port's existing Rails release series; update all version-linked component ports together. Validation on MidnightBSD 4.0.9 amd64, Ruby 3.3.11: official release SHA256 matches the supplied announcement; MIT license unchanged; makesum, patch, build, fake including gem dependency QA, and package passed. Portlint: zero fatal errors (existing advisories only). Runtime dependency gems were isolated under /tmp; NO_DEPENDS=yes prevented installing host packages, so mport dependency installation/closure itself was not tested. Targeted security validation for the Rails 8.1 release: twelve …
1ed0f9823e Lucas Holt shells: port 33 shells and utilities from FreeBSD (plus 7 prerequisites) (#2196)
## Summary Port 33 missing shells and shell utilities from FreeBSD ports into `shells/`, along with 7 prerequisite ports in `devel/`, `lang/`, and `textproc/`. ### Prerequisites Added (7) - `devel/p5-Data-Dump-Streamer` - `devel/p5-Term-Screen` - `devel/p5-Tree-Trie` - `devel/schilybase` - `devel/smake` - `lang/chez-scheme` - `textproc/p5-YAML-Syck` ### Shells & Utilities Added (33) - `shells/antibody` - `shells/bash-completion-zfs` - `shells/bicon` - `shells/bosh` - `shells/carapace` - `shells/git-prompt.zsh` - `shells/ion` - `shells/iris` - `shells/meka` - `shells/modernish` - `shells/murex` - `shells/nsh` - `shells/nu_plugin_formats` - `shells/nu_plugin_gstat` - `shells/nu_plugin_inc` - `shells/nu_plugin_polars` - `shells/nu_plugin_query` - `shells/ohmyzsh` …