mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-23 00:34:20 +01:00
fix(shell): respect ZSH's $ZDOTDIR environment variable (#1441)
This commit is contained in:
parent
7019697fae
commit
901459b805
@ -183,7 +183,7 @@ esac
|
|||||||
# TODO: Check which shell is in use
|
# TODO: Check which shell is in use
|
||||||
# Use of single quotes around $() is intentional here
|
# Use of single quotes around $() is intentional here
|
||||||
# shellcheck disable=SC2016
|
# 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"
|
printf '\neval "$(atuin init zsh)"\n' >> "${ZDOTDIR:-$HOME}/.zshrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user