3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/programs/zsh
Jörg Thalheim 55819e6c86
Revert "zsh: don't clobber the environment of non-login shells"
This reverts commit 6a756af3e7.

Currently zshenv by default only set fpath and HELPDIR without exporting them.
A parent shell would also not set those variables usually as they are shell local.

It also sources a file called set-environment but this is protected by an
environment variable called __NIXOS_SET_ENVIRONMENT_DONE. Hence any modification
done by the parent shell should persist as long as __NIXOS_SET_ENVIRONMENT_DONE
is not unset.

This behavior deviates from what we do in bashrc and breaks common setups such
as tmux/mosh or screen.

Fixes #80437
2020-02-18 15:52:21 +00:00
..
oh-my-zsh.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
oh-my-zsh.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
zinputrc
zsh-autoenv.nix
zsh-autosuggestions.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
zsh-syntax-highlighting.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
zsh.nix Revert "zsh: don't clobber the environment of non-login shells" 2020-02-18 15:52:21 +00:00