zplug: Update the path of init.zsh (#3922)
The current zplug nixpkgs puts everything under `$out/`. It pollutes the nix profile dir. This is a breaking change. It depends on an change of the output path in the nixpkgs zplug package.
This commit is contained in:
parent
c4f3a37071
commit
27d89b49e3
|
@ -47,7 +47,7 @@ in {
|
||||||
programs.zsh.initExtraBeforeCompInit = ''
|
programs.zsh.initExtraBeforeCompInit = ''
|
||||||
export ZPLUG_HOME=${cfg.zplugHome}
|
export ZPLUG_HOME=${cfg.zplugHome}
|
||||||
|
|
||||||
source ${pkgs.zplug}/init.zsh
|
source ${pkgs.zplug}/share/zplug/init.zsh
|
||||||
|
|
||||||
${optionalString (cfg.plugins != [ ]) ''
|
${optionalString (cfg.plugins != [ ]) ''
|
||||||
${concatStrings (map (plugin: ''
|
${concatStrings (map (plugin: ''
|
||||||
|
|
|
@ -29,7 +29,7 @@ with lib;
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileContains home-files/.zshrc \
|
assertFileContains home-files/.zshrc \
|
||||||
'source @zplug@/init.zsh'
|
'source @zplug@/share/zplug/init.zsh'
|
||||||
|
|
||||||
assertFileContains home-files/.zshrc \
|
assertFileContains home-files/.zshrc \
|
||||||
'zplug "plugins/git", from:oh-my-zsh'
|
'zplug "plugins/git", from:oh-my-zsh'
|
||||||
|
|
Loading…
Reference in a new issue