summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Xu <stevenxxiu@users.noreply.github.com>2023-03-29 07:34:40 +1100
committerGitHub <noreply@github.com>2023-03-28 21:34:40 +0100
commite9f9f9f994e489d708f3daa1923c5cab3e8cedd7 (patch)
treedfcda4b449ed97d6d35171994224792f4b887cfe
parentcaf2ddfb9ff7a5f78cd10da0dc030fdeee7c0fe0 (diff)
fix: record negative exit codes (#821)
-rw-r--r--src/shell/atuin.nu2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell/atuin.nu b/src/shell/atuin.nu
index 5dbb4082..f9e70efc 100644
--- a/src/shell/atuin.nu
+++ b/src/shell/atuin.nu
@@ -20,7 +20,7 @@ let _atuin_pre_prompt = {||
return
}
with-env { RUST_LOG: error } {
- atuin history end --exit $last_exit -- $env.ATUIN_HISTORY_ID | null
+ atuin history end $'--exit=($last_exit)' -- $env.ATUIN_HISTORY_ID | null
}
}