From 7f5310a1aa87cb32499e7f50c864fdaa9a82bd53 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Mon, 25 Apr 2022 07:13:30 +0100 Subject: history list (#340) --- atuin-client/src/history.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'atuin-client/src/history.rs') diff --git a/atuin-client/src/history.rs b/atuin-client/src/history.rs index 6610b988..c7bf6111 100644 --- a/atuin-client/src/history.rs +++ b/atuin-client/src/history.rs @@ -45,4 +45,8 @@ impl History { hostname, } } + + pub fn success(&self) -> bool { + self.exit == 0 || self.duration == -1 + } } -- cgit v1.3.1