1
1
mirror of https://github.com/ellie/atuin.git synced 2024-08-17 08:50:43 +03:00

fix(shell): respect ZSH's $ZDOTDIR environment variable (#1441)

This commit is contained in:
Dennis Trautwein 2023-12-12 11:03:22 +01:00 committed by GitHub
parent 7019697fae
commit 901459b805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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