1 unstable release

0.0.6 Jun 1, 2024

#437 in Command-line interface

Download history 167/week @ 2024-05-29 17/week @ 2024-06-05 7/week @ 2024-06-12

191 downloads per month

MIT/Apache

37KB
119 lines

shrs_file_history

file backed history MIT/Apache 2.0

This is a plugin for [shrs](https://github.com/MrPicklePinosaur/shrs).

Using this plugin

First add this plugin to your dependencies

shrs_command_timer = { version = "0.0.6" }

Then include this plugin when initializing shrs

use shrs::shell::ShellBuilder;
use shrs_file_history::FileBackedHistoryPlugin;
fn main() {
    let myshell = ShellBuilder::default()
        .with_plugin(FileBackedHistoryPlugin::new())
        .build()
        .unwrap();

    myshell.run().expect("Error when running shell");
}

Dependencies

~15–31MB
~450K SLoC