summaryrefslogtreecommitdiffstats
path: root/src/shell/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-03-08 19:58:53 -0500
committerJesse Luehrs <doy@tozt.net>2022-03-08 20:00:46 -0500
commit3a082edd58ecdf4db31702c6c8487c42227049a3 (patch)
tree6cdb3a7b635da5b06e82fc91d7ddba618822843a /src/shell/mod.rs
parent1abb97cca69e0b513f7499cc7db03ba622b38711 (diff)
downloadnbsh-3a082edd58ecdf4db31702c6c8487c42227049a3.tar.gz
nbsh-3a082edd58ecdf4db31702c6c8487c42227049a3.zip
parse a history file if available
doesn't do anything with it yet
Diffstat (limited to 'src/shell/mod.rs')
-rw-r--r--src/shell/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shell/mod.rs b/src/shell/mod.rs
index 9befd99..4a5c5d2 100644
--- a/src/shell/mod.rs
+++ b/src/shell/mod.rs
@@ -5,6 +5,7 @@ use textmode::Textmode as _;
mod event;
mod history;
mod inputs;
+mod old_history;
mod prelude;
mod readline;
@@ -75,6 +76,7 @@ pub enum Action {
pub struct Shell {
readline: readline::Readline,
history: history::History,
+ old_history: old_history::History,
env: Env,
git: Option<inputs::GitInfo>,
focus: Focus,
@@ -92,6 +94,7 @@ impl Shell {
Ok(Self {
readline: readline::Readline::new(),
history: history::History::new(),
+ old_history: old_history::History::new(),
env,
git: None,
focus: Focus::Readline,