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