2023-06-23 03:14:48 +00:00
|
|
|
{ pkgs, ... }:
|
2023-06-15 12:52:33 +00:00
|
|
|
|
|
|
|
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 \
|
2023-06-23 03:14:48 +00:00
|
|
|
'source @antidote@/share/antidote/antidote.zsh'
|
2023-06-15 12:52:33 +00:00
|
|
|
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
|
|
|
|
'antidote load'
|
|
|
|
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
|
|
|
|
"zstyle ':antidote:bundle' use-friendly-names 'yes'"
|
|
|
|
'';
|
|
|
|
}
|