summaryrefslogtreecommitdiffstats
path: root/src/shell/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-03-08 20:17:31 -0500
committerJesse Luehrs <doy@tozt.net>2022-03-08 20:17:31 -0500
commit4151ab7aab939a12721a0f4207c87b5c09ace339 (patch)
treedb2f9935a3369aa18ebb6076188fda34fbd92bd8 /src/shell/mod.rs
parent0688cd6653e769846a4271ac2c251a7d96249396 (diff)
downloadnbsh-master.tar.gz
nbsh-master.zip
save the history on shell exitHEADmaster
Diffstat (limited to 'src/shell/mod.rs')
-rw-r--r--src/shell/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shell/mod.rs b/src/shell/mod.rs
index 4a5c5d2..fa7147b 100644
--- a/src/shell/mod.rs
+++ b/src/shell/mod.rs
@@ -50,6 +50,8 @@ pub async fn main() -> Result<i32> {
}
}
+ shell.history.save().await;
+
Ok(0)
}