Skip to content

Commit 3843201

Browse files
committed
Update to use .zshenv over .zshrc
`.zshenv` is sourced by all zsh shells (interactive/non-interactive/login). Where `.zshrc` is only sourced by interactive shells. To prevent users from having to be aware of auth wrappers, using `.zshenv` will help reduce friction for users.
1 parent c59303b commit 3843201

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/artifacts-helper/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ fi
118118

119119
if [ "${COMMA_SEP_TARGET_FILES}" = "DEFAULT" ]; then
120120
if [ "${INSTALL_WITH_SUDO}" = "true" ]; then
121-
COMMA_SEP_TARGET_FILES="~/.bashrc,~/.zshrc"
121+
COMMA_SEP_TARGET_FILES="~/.bashrc,~/.zshenv"
122122
else
123-
COMMA_SEP_TARGET_FILES="/etc/bash.bashrc,/etc/zsh/zshrc"
123+
COMMA_SEP_TARGET_FILES="/etc/bash.bashrc,/etc/zsh/zshenv"
124124
fi
125125
fi
126126

0 commit comments

Comments
 (0)