75fa0ae5af
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
28 lines
676 B
Nix
28 lines
676 B
Nix
{ pkgs, ... }:
|
|
|
|
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@/share/antidote/antidote.zsh'
|
|
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
|
|
'antidote load'
|
|
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
|
|
"zstyle ':antidote:bundle' use-friendly-names 'yes'"
|
|
'';
|
|
}
|