From dd2784a6ffbd91279f076b5e7eed208aaf8d5d01 Mon Sep 17 00:00:00 2001 From: Jeff Gould Date: Mon, 15 Jul 2024 13:00:47 -0700 Subject: [PATCH 1/2] chore: ignore .envrc --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 1876e4e38cb..3b61025f187 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ .vscode/ result publish.sh +.envrc ui/backend/target ui/backend/gen From 1e321983ab4e524374815c0023ffd380726ebcc4 Mon Sep 17 00:00:00 2001 From: Jeff Gould Date: Mon, 15 Jul 2024 13:03:02 -0700 Subject: [PATCH 2/2] fix(history): Check passed exit param instead of not-yet set h.exit --- crates/atuin/src/command/client/history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/atuin/src/command/client/history.rs b/crates/atuin/src/command/client/history.rs index a9970559217..17b400f387a 100644 --- a/crates/atuin/src/command/client/history.rs +++ b/crates/atuin/src/command/client/history.rs @@ -384,7 +384,7 @@ impl Cmd { return Ok(()); } - if !settings.store_failed && h.exit != 0 { + if !settings.store_failed && exit > 0 { debug!("history has non-zero exit code, and store_failed is false"); // the history has already been inserted half complete. remove it