fix: record negative exit codes (#821)

This commit is contained in:
Steven Xu 2023-03-29 07:34:40 +11:00 committed by GitHub
parent caf2ddfb9f
commit e9f9f9f994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}