From 998bd5be8953519f3e81e942eedca11d8e72de20 Mon Sep 17 00:00:00 2001 From: DS/Charlie <82801887+ds-cbo@users.noreply.github.com> Date: Mon, 10 Jul 2023 11:34:24 +0200 Subject: fix for zsh no-unset environments (#921) --- atuin/src/shell/atuin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3