summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDS/Charlie <82801887+ds-cbo@users.noreply.github.com>2023-07-10 11:34:24 +0200
committerGitHub <noreply@github.com>2023-07-10 09:34:24 +0000
commit998bd5be8953519f3e81e942eedca11d8e72de20 (patch)
treee97861e60a1b6acb9423b80a8c438f0f048dc651
parent6c6f5f8187c1aa6c0b19879a717c538ced65bfb5 (diff)
fix for zsh no-unset environments (#921)
-rw-r--r--atuin/src/shell/atuin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/atuin/src/shell/atuin.zsh b/atuin/src/shell/atuin.zsh
index b0e160ff..eadd9203 100644
--- a/atuin/src/shell/atuin.zsh
+++ b/atuin/src/shell/atuin.zsh
@@ -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
}