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
1 changed files with 2 additions and 2 deletions

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}"${