diff --git a/src/main.rs b/src/main.rs index f60ae72..332e744 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ mod prompt; use crate::error::ShellError; use execute::interpret; +use rustyline::config::Configurer; use rustyline::error::ReadlineError; use rustyline::{Editor, Result}; @@ -18,6 +19,7 @@ fn main() -> Result<()> { }); let mut rl = Editor::<()>::new()?; + rl.set_auto_add_history(true); let mut prompt = Prompt::new();