programs.zsh.zplug: add zplugHome option
Add an option to set custom `$ZPLUG_HOME`. Changing it with `home.sessionVariables` doesnt work, since it has to be exported before Zplug is initialised
This commit is contained in:
parent
21590d40c1
commit
288faaa5a6
2 changed files with 14 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ with lib;
|
|||
enable = true;
|
||||
zplug = {
|
||||
enable = true;
|
||||
zplugHome = ~/.customZplugHome;
|
||||
plugins = [
|
||||
{
|
||||
name = "plugins/git";
|
||||
|
|
@ -43,6 +44,9 @@ with lib;
|
|||
|
||||
assertFileRegex home-files/.zshrc \
|
||||
'^zplug load$'
|
||||
|
||||
assertFileContains home-files/.zshrc \
|
||||
'export ZPLUG_HOME=${config.programs.zsh.zplug.zplugHome}'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue