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:
parent
5b2d8e9a47
commit
4d59f660bc
1 changed files with 5 additions and 5 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Reference in a new issue