1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-08 10:09:38 +00:00

zsh: move fpath init from /etc/zshrc to /etc/zshenv

We want these to be set even when /etc/zshrc loading is disabled.

NixOS/nixpkgs@f70e3f3738
This commit is contained in:
Jan Malakhovski 2024-09-10 21:35:35 +02:00 committed by Antoine Cotten
parent 5b2d8e9a47
commit 4d59f660bc
No known key found for this signature in database

View file

@ -135,6 +135,11 @@ in
. ${config.system.build.setEnvironment}
fi
# Tell zsh how to find installed completions
for p in ''${(z)NIX_PROFILES}; do
fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions)
done
${cfg.shellInit}
# Read system-wide modifications.
@ -182,11 +187,6 @@ in
${config.environment.interactiveShellInit}
${cfg.interactiveShellInit}
# Tell zsh how to find installed completions
for p in ''${(z)NIX_PROFILES}; do
fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions)
done
${cfg.promptInit}
${optionalString cfg.enableGlobalCompInit "autoload -U compinit && compinit"}