Merge pull request #197503 from eigengrau/zsh-fpath-prefer-profiles

nixos/zsh: prefer added completions over completions shipped with Zsh
This commit is contained in:
Timothy DeHerrera 2022-10-24 11:35:29 -06:00 committed by GitHub
commit 3266f35fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,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
# Setup custom shell init stuff.