aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Potier <jpotier@users.noreply.github.com>2017-09-03 18:24:26 +0200
committerNikita Uvarov <uv.nikita@gmail.com>2017-09-04 11:45:41 +0200
commit721f924e151d5c2195ac55c5af39485023cb7b94 (patch)
tree099cb3a3e306f183dc458e6eca458f733067e123
parent6611c1609933316cd5e0d6785aa5ccb8b80deff6 (diff)
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.
-rw-r--r--modules/programs/zsh.nix5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix
index 32f30aaf9df..be9eb3c735f 100644
--- a/modules/programs/zsh.nix
+++ b/modules/programs/zsh.nix
@@ -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 ""}