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:
parent
f7fed4dd3d
commit
fa671f1795
1 changed files with 2 additions and 2 deletions
|
@ -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}"${
|
||||
|
|
Loading…
Reference in a new issue