Skip to content
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

Use /etc/zshenv instead of /etc/zshrc for profile #3608

Merged
merged 1 commit into from
May 27, 2020

Conversation

surajbarkale
Copy link
Contributor

As noted in #3456 the /etc/zshenv file provides a better place for sourcing the nix environment.

As noted in NixOS#3456 the `/etc/zshenv` file provides a better place for sourcing the nix environment.
@domenkozar
Copy link
Member

@surajbarkale
Copy link
Contributor Author

That thread is about $HOME/.zshenv file. I have been using /etc/zshenv since start of this year without any issues.

@edolstra edolstra merged commit 228857e into NixOS:master May 27, 2020
abathur added a commit to abathur/nix that referenced this pull request Sep 11, 2020
Env vars for ZSH were moved from /etc/zshrc to /etc/zshenv in NixOS#3608
to address an issue with zshrc getting clobbered by OS updates, but
/etc/zshenv doesn't exist by default--so *nothing* would get set up
for zsh users unless they already happened to have /etc/zshenv.

Tentatively trying creating these files if they don't exist...
abathur added a commit to abathur/nix that referenced this pull request Sep 12, 2020
Env vars for ZSH were moved from /etc/zshrc to /etc/zshenv in NixOS#3608
to address an issue with zshrc getting clobbered by OS updates, but
/etc/zshenv doesn't exist by default--so *nothing* would get set up
for zsh users unless they already happened to have /etc/zshenv.

Tentatively trying creating these files if they don't exist...
abathur added a commit to abathur/nix that referenced this pull request Sep 24, 2020
Env vars for ZSH were moved from /etc/zshrc to /etc/zshenv in NixOS#3608
to address an issue with zshrc getting clobbered by OS updates, but
/etc/zshenv doesn't exist by default--so *nothing* would get set up
for zsh users unless they already happened to have /etc/zshenv.

Tentatively trying creating these files if they don't exist...
abathur added a commit to abathur/nix that referenced this pull request Oct 19, 2020
Env vars for ZSH were moved from /etc/zshrc to /etc/zshenv in NixOS#3608
to address an issue with zshrc getting clobbered by OS updates, but
/etc/zshenv doesn't exist by default--so *nothing* would get set up
for zsh users unless they already happened to have /etc/zshenv.

Creating these files if they don't exist. Also cut separate creation
of profile.d/nix.sh, which isn't needed now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants