#shell

app nsh

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

15 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

0.3.3 Mar 7, 2020
0.3.0 Feb 29, 2020
0.2.1 Dec 2, 2019
0.2.0 Nov 2, 2019
0.0.3 Dec 19, 2018

#380 in Command line utilities

Download history 12/week @ 2020-01-14 3/week @ 2020-01-21 17/week @ 2020-01-28 5/week @ 2020-02-04 14/week @ 2020-02-11 25/week @ 2020-02-18 43/week @ 2020-02-25 87/week @ 2020-03-03 27/week @ 2020-03-10 49/week @ 2020-03-17 53/week @ 2020-03-24 9/week @ 2020-03-31 47/week @ 2020-04-07 67/week @ 2020-04-14 5/week @ 2020-04-21 6/week @ 2020-04-28

148 downloads per month

CC0-1.0 OR MIT

335KB
9K SLoC

Ruby HTML 8K SLoC // 0.1% comments Rakudo 247 SLoC // 0.2% comments

nsh

Build Status Latest version

Currently nsh is incomplete and not yet stable. Succeeded in crashing nsh? Let me know!

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.
  • A builtin interactive fuzzy completion filter.
  • 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

~5.5MB
~100K SLoC