From 901459b805275a1581162c2b1e85664ac6fc5bcf Mon Sep 17 00:00:00 2001 From: Dennis Trautwein Date: Tue, 12 Dec 2023 11:03:22 +0100 Subject: [PATCH] fix(shell): respect ZSH's $ZDOTDIR environment variable (#1441) --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f547a7cd..242713e6 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