From 4a0fc4165a3e7c90b6b1a33e28ce010a0eb4cab7 Mon Sep 17 00:00:00 2001 From: Dennis Trautwein Date: Tue, 12 Dec 2023 10:59:20 +0100 Subject: [PATCH] fix: respect ZSH's $ZDOTDIR environment variable --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f547a7cd7b1..242713e68f9 100755 --- a/install.sh +++ b/install.sh @@ -183,7 +183,7 @@ esac # TODO: Check which shell is in use # Use of single quotes around $() is intentional here # shellcheck disable=SC2016 -if ! grep -q "atuin init zsh" ~/.zshrc; then +if ! grep -q "atuin init zsh" "${ZDOTDIR:-$HOME}/.zshrc"; then printf '\neval "$(atuin init zsh)"\n' >> "${ZDOTDIR:-$HOME}/.zshrc" fi