zsh: add user nix-profile dir to fpath

Fixes zsh plugins installed to nix user profile via nixpkgs.
This commit is contained in:
Nikita Uvarov 2017-09-05 14:21:57 +02:00
parent 379e2c694b
commit c7edde6ca4
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -208,6 +208,9 @@ in
${if cfg.history.ignoreDups then "setopt" else "unsetopt"} HIST_IGNORE_DUPS
${if cfg.history.share then "setopt" else "unsetopt"} SHARE_HISTORY
fpath+="$HOME/.nix-profile/share/zsh/site-functions"
fpath+="$HOME/.nix-profile/share/zsh/$ZSH_VERSION/functions"
HELPDIR="${pkgs.zsh}/share/zsh/$ZSH_VERSION/help"
${concatStrings (map (plugin: ''