antidote: add module
Antidote is a Zsh plugin manager.
This commit is contained in:
parent
b9046172a5
commit
70ac18872a
6 changed files with 95 additions and 0 deletions
31
tests/modules/programs/antidote/antidote.nix
Normal file
31
tests/modules/programs/antidote/antidote.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ ... }:
|
||||
|
||||
let relToDotDirCustom = ".zshplugins";
|
||||
|
||||
in {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
dotDir = relToDotDirCustom;
|
||||
antidote = {
|
||||
enable = true;
|
||||
useFriendlyNames = true;
|
||||
plugins = [ "zsh-users/zsh-autosuggestions" ];
|
||||
};
|
||||
};
|
||||
|
||||
test.stubs = {
|
||||
antidote = { };
|
||||
zsh = { };
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
|
||||
'source @antidote@/antidote.zsh'
|
||||
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
|
||||
'antidote load'
|
||||
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
|
||||
"zstyle ':antidote:bundle' use-friendly-names 'yes'"
|
||||
assertFileContains home-files/${relToDotDirCustom}/.zsh_plugins.txt \
|
||||
'zsh-users/zsh-autosuggestions'
|
||||
'';
|
||||
}
|
||||
1
tests/modules/programs/antidote/default.nix
Normal file
1
tests/modules/programs/antidote/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ antidote-program = ./antidote.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue