mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 16:23:54 +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
|
||||
# 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user