6 releases

0.0.6 Jun 1, 2024
0.0.5 Apr 16, 2024
0.0.4 Feb 2, 2024
0.0.3 Jan 2, 2024
0.0.1 Jun 3, 2023

#439 in Command-line interface

Download history 42/week @ 2024-06-16 36/week @ 2024-06-23 7/week @ 2024-06-30 9/week @ 2024-07-07 25/week @ 2024-07-14 28/week @ 2024-07-21 26/week @ 2024-07-28 24/week @ 2024-08-04 31/week @ 2024-08-11 32/week @ 2024-08-18 36/week @ 2024-08-25 44/week @ 2024-09-01 31/week @ 2024-09-08 50/week @ 2024-09-15 45/week @ 2024-09-22 119/week @ 2024-09-29

250 downloads per month
Used in 15 crates

MIT/Apache

335KB
7K SLoC

sh.rs

The rusty shell toolkit for hackers

crates.io Doc book MIT/Apache 2.0 Discord

PROJECT GOALS

  • hackable: almost every aspect of the shell should be easily customizable and extendable
  • developer friendly: well documented and easy to contribute to
  • rusty: implemented in and configurable in rust

FEATURES

DISCLAIMER: shrs is currently very much a work in progress, the API is subject to change frequently and things are prone to breaking. It currently may not be suitable for daily use, but is great for prototyping any experimental shell features you dream up with!

Here are what makes shrs special:

  • Completely configurable in rust (including your prompt, completions and more!)
  • Plugin system (community maintained plugins that add unique features)

GETTING STARTED

To get a taste of what shrs is capable of, without any configuration, you can run the example shrs_example shell that is bundled by running:

git clone https://github.com/MrPicklePinosaur/shrs.git
cd ./shrs/shrs_example
cargo run

To get started with building your own shell, it's as easy as creating a new cargo project with:

use shrs::prelude::*;

fn main() {
    let myshell = ShellBuilder::default()
        .build()
        .unwrap();

    myshell.run();
}

See the developer documentation for more in depth information.

CONTRIBUTING

If you encounter and bugs are have any feature requests, please don't hesitate to leave an issue! Also take a look at the section for contributors in the documentation.

COMMUNITY PLUGINS

List of cool 3rd part plugins and community built shells can be found in awesome_shrs. Some notable examples includes

Dependencies

~17–30MB
~477K SLoC