fix for zsh no-unset environments (#921)

This commit is contained in:
DS/Charlie 2023-07-10 11:34:24 +02:00 committed by GitHub
parent 6c6f5f8187
commit 998bd5be89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ _atuin_preexec() {
_atuin_precmd() {
local EXIT="$?"
[[ -z "${ATUIN_HISTORY_ID}" ]] && return
[[ -z "${ATUIN_HISTORY_ID:-}" ]] && return
(RUST_LOG=error atuin history end --exit $EXIT -- $ATUIN_HISTORY_ID &) >/dev/null 2>&1
}