mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +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 ];
|
home.packages = [ pkgs.zplug ];
|
||||||
|
|
||||||
programs.zsh.initExtraBeforeCompInit = ''
|
programs.zsh.initExtraBeforeCompInit = ''
|
||||||
source ${pkgs.zplug}/init.zsh
|
|
||||||
|
|
||||||
export ZPLUG_HOME=${cfg.zplugHome}
|
export ZPLUG_HOME=${cfg.zplugHome}
|
||||||
|
|
||||||
|
source ${pkgs.zplug}/init.zsh
|
||||||
|
|
||||||
${optionalString (cfg.plugins != [ ]) ''
|
${optionalString (cfg.plugins != [ ]) ''
|
||||||
${concatStrings (map (plugin: ''
|
${concatStrings (map (plugin: ''
|
||||||
zplug "${plugin.name}"${
|
zplug "${plugin.name}"${
|
||||||
|
|
Loading…
Reference in a new issue