1 unstable release

0.0.6 Jun 1, 2024

#13 in #shrs

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

~16–29MB
~459K SLoC