aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorDennis Trautwein <git@dtrautwein.eu>2023-12-12 11:03:22 +0100
committerGitHub <noreply@github.com>2023-12-12 10:03:22 +0000
commit901459b805275a1581162c2b1e85664ac6fc5bcf (patch)
tree6e50df54d56c1f29f4c0d8b544b6b48b3d330217 /install.sh
parentUpdate README.md logo height (diff)
downloadatuin-901459b805275a1581162c2b1e85664ac6fc5bcf.zip
fix(shell): respect ZSH's $ZDOTDIR environment variable (#1441)
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh2
1 files changed, 1 insertions, 1 deletions
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