1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00

programs.zsh: set ZPLUG_HOME before loading zplug (#2987)

ZPLUG_HOME must be set before loading zplug, since otherwise it is ignored.
This commit is contained in:
Peter Kling 2022-11-27 18:50:46 +01:00 committed by GitHub
parent f7fed4dd3d
commit fa671f1795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,10 +45,10 @@ in {
home.packages = [ pkgs.zplug ];
programs.zsh.initExtraBeforeCompInit = ''
source ${pkgs.zplug}/init.zsh
export ZPLUG_HOME=${cfg.zplugHome}
source ${pkgs.zplug}/init.zsh
${optionalString (cfg.plugins != [ ]) ''
${concatStrings (map (plugin: ''
zplug "${plugin.name}"${