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:
Sinkerine 2023-04-29 02:08:16 -07:00 committed by GitHub
parent c4f3a37071
commit 27d89b49e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ in {
programs.zsh.initExtraBeforeCompInit = ''
export ZPLUG_HOME=${cfg.zplugHome}
source ${pkgs.zplug}/init.zsh
source ${pkgs.zplug}/share/zplug/init.zsh
${optionalString (cfg.plugins != [ ]) ''
${concatStrings (map (plugin: ''

View File

@ -29,7 +29,7 @@ with lib;
nmt.script = ''
assertFileContains home-files/.zshrc \
'source @zplug@/init.zsh'
'source @zplug@/share/zplug/init.zsh'
assertFileContains home-files/.zshrc \
'zplug "plugins/git", from:oh-my-zsh'