Skip to content

Setup BASH_ENV and zshenv #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
scaryrawr committed Mar 21, 2025
commit 38432014c7cb69cb19472f59a002d82657c7e3b5
4 changes: 2 additions & 2 deletions src/artifacts-helper/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ fi

if [ "${COMMA_SEP_TARGET_FILES}" = "DEFAULT" ]; then
if [ "${INSTALL_WITH_SUDO}" = "true" ]; then
COMMA_SEP_TARGET_FILES="~/.bashrc,~/.zshrc"
COMMA_SEP_TARGET_FILES="~/.bashrc,~/.zshenv"
else
COMMA_SEP_TARGET_FILES="/etc/bash.bashrc,/etc/zsh/zshrc"
COMMA_SEP_TARGET_FILES="/etc/bash.bashrc,/etc/zsh/zshenv"
fi
fi

Expand Down