#shell #command-line #syntax-highlighting #posix #bash #tabs #completion

app nsh

A command-line shell written in Rust that focuses on productivity and swiftness

20 releases

0.4.2 Jul 21, 2021
0.4.0 Jan 9, 2021
0.3.5 Aug 26, 2020
0.3.4 Jun 14, 2020
0.0.3 Dec 19, 2018

#2562 in Command line utilities

Download history 37/week @ 2024-02-19 18/week @ 2024-02-26 16/week @ 2024-03-04 29/week @ 2024-03-11 15/week @ 2024-03-18 13/week @ 2024-03-25

75 downloads per month

CC0-1.0 OR MIT

355KB
9K SLoC

nsh

CI Status Latest version

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 🦀

screenshot

Installation

$ cargo install nsh

Documentation

Documentation

Why create a new shell?

Bash is the best for executing shell scripts but its interactive mode is not satisfactory. I am a zsh user for the last decade but I don't need customizability and got tired of making my zshrc faster. Fish is really neat but I prefer old-fashioned, traditional, and ergonomic shell syntax.

Contributing

nsh is in alpha stage: there are many missing features which Bash provides, there are kludges in source code, and there must be bugs. To make nsh practical for daily use, I need your help!

How can I contribute?

  • Report bugs in GitHub issues. Please attach a minimal reproducible example (e.g. shell script) if possible. It helps me to fix the bug easier.
  • Suggest enhancements in GitHub issues.
  • Submit a Pull Request which implements a new feature, fixes a bug, refactors code, rephrases sentences in documentation, etc.

License

CC0 or MIT. Choose whichever you prefer.

Dependencies

~9–20MB
~262K SLoC