mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
zsh: remove search for installed completions
1. It slows down the initial start: it takes around 2s at first launch, and around 0.25s for the following launches; 2. It seems to be redundant since just installing zsh package gives working completions with correct $fpath set.
This commit is contained in:
parent
6611c16099
commit
721f924e15
1 changed files with 0 additions and 5 deletions
|
@ -107,11 +107,6 @@ in
|
|||
${if cfg.history.ignoreDups then "setopt" else "unsetopt"} HIST_IGNORE_DUPS
|
||||
${if cfg.history.share then "setopt" else "unsetopt"} SHARE_HISTORY
|
||||
|
||||
# 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)
|
||||
done
|
||||
|
||||
HELPDIR="${pkgs.zsh}/share/zsh/$ZSH_VERSION/help"
|
||||
|
||||
${if cfg.enableCompletion then "autoload -U compinit && compinit" else ""}
|
||||
|
|
Loading…
Reference in a new issue