Expand description
shrs is a framework for building and configuring your own shell in rust.
§Example
The most basic shell can be created very easily:
use shrs::prelude::*;
fn main() {
let myshell = ShellBuilder::default()
.build()
.unwrap();
myshell.run().unwrap();
}
For more advanced explanation on features and configuration options, see the shrs book
Modules§
- Shell aliasing
- Re-export of anyhow crate for error handling
- Builtin commands
- Shell autocompletion
- Re-export of crossterm types
- Environment variables
- Shell history
- Shell runtime hooks
- Abstraction layer for processes
- Keybinding system
- Shell command language
- Plugin System
use shrs::prelude::*
to import most commonly used structs and functions- Collection of utility functions for building a prompt
- Readline implementation for shrs
- Types for internal context of shell
- Globally accessible state store
- Configuration for common color values bundled into a theme
Macros§
- Macro to easily define keybindings