lol

Fix zsh completions (#28550)

* Fix zsh completions

* Fix zsh completions (fix commit)

* Fix zsh completions (fix commit)

authored by

Izorkin and committed by
Jörg Thalheim
520a43ce f861426d

+5 -5
+5 -5
nixos/modules/programs/zsh/zsh.nix
··· 158 158 159 159 HELPDIR="${pkgs.zsh}/share/zsh/$ZSH_VERSION/help" 160 160 161 + # Tell zsh how to find installed completions 162 + for p in ''${(z)NIX_PROFILES}; do 163 + fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions) 164 + done 165 + 161 166 ${optionalString cfg.enableCompletion "autoload -U compinit && compinit"} 162 167 163 168 ${optionalString (cfg.enableAutosuggestions) ··· 171 176 ${cfg.interactiveShellInit} 172 177 173 178 ${cfg.promptInit} 174 - 175 - # Tell zsh how to find installed completions 176 - for p in ''${(z)NIX_PROFILES}; do 177 - fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions) 178 - done 179 179 180 180 # Read system-wide modifications. 181 181 if test -f /etc/zshrc.local; then