From 4151ab7aab939a12721a0f4207c87b5c09ace339 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 8 Mar 2022 20:17:31 -0500 Subject: save the history on shell exit --- src/shell/history/entry.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shell/history/entry.rs') diff --git a/src/shell/history/entry.rs b/src/shell/history/entry.rs index 145e0cf..0491bf7 100644 --- a/src/shell/history/entry.rs +++ b/src/shell/history/entry.rs @@ -227,6 +227,10 @@ impl Entry { &self.cmdline } + pub fn start_time(&self) -> time::OffsetDateTime { + self.start_time + } + pub fn toggle_fullscreen(&mut self) { if let Some(fullscreen) = self.fullscreen { self.fullscreen = Some(!fullscreen); -- cgit v1.2.3-54-g00ecf