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