diff options
| author | Sebastian Reuße <seb@schattenkopie.de> | 2024-09-10 21:40:11 +0200 |
|---|---|---|
| committer | Antoine Cotten <hello@acotten.com> | 2024-09-10 21:40:11 +0200 |
| commit | 15f64efcaf936f3b77955018d29b4802be6b144f (patch) | |
| tree | cb7c515d8cd8a794e08e40ea2e99cd4cd068250a /modules/programs | |
| parent | 4d59f660bc41ba35b1f6df829e8e0b7706b35ee7 (diff) | |
zsh: prefer Nix completions these from Zsh package
Zsh ships some rudimentary completions for programs where upstream also
ships their own completions (e.g., curl). So as not to shadow those
completions, we need to prepend to the fpath instead of appending.
NixOS/nixpkgs@8dad5a22399782a4ef681174219546cb050e580f
Diffstat (limited to 'modules/programs')
| -rw-r--r-- | modules/programs/zsh/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/programs/zsh/default.nix b/modules/programs/zsh/default.nix index 15d5ba7..58a3155 100644 --- a/modules/programs/zsh/default.nix +++ b/modules/programs/zsh/default.nix @@ -137,7 +137,7 @@ in # 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) + fpath=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions $fpath) done ${cfg.shellInit} |
