mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 21:23:38 +00:00
32 lines
768 B
Nix
32 lines
768 B
Nix
|
{ ... }:
|
||
|
|
||
|
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'
|
||
|
'';
|
||
|
}
|