From 215c5e3fb9dddb56c6f473a8bd6f46ad4e279e53 Mon Sep 17 00:00:00 2001 From: Thales Maciel <48626109+thales-maciel@users.noreply.github.com> Date: Mon, 21 Dec 2020 04:45:23 -0300 Subject: [PATCH] Check if $ZDOTDIR exists to find correct path to .zshrc (#347) Co-authored-by: Thales Maciel --- .ci/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/install.sh b/.ci/install.sh index fb2e093..3f01505 100755 --- a/.ci/install.sh +++ b/.ci/install.sh @@ -148,7 +148,7 @@ setup_shell() { CURRENT_SHELL="$(basename "$SHELL")" if [ "$CURRENT_SHELL" == "zsh" ]; then - CONF_FILE=$HOME/.zshrc + CONF_FILE=${ZDOTDIR:-$HOME}/.zshrc ensure_containing_dir_exists "$CONF_FILE" echo "Installing for Zsh. Appending the following to $CONF_FILE:" echo ""