home-manager/tests/modules/programs/antidote/antidote.nix
hitsmaxft 491f74db89
antidote: fix package source path
Changes

  'source %antidote%/antidote.zsh'

to

  'source %antidote%/share/antidote/antidote.zsh'
2023-06-23 09:36:00 +02:00

31 lines
788 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'"
assertFileContains home-files/${relToDotDirCustom}/.zsh_plugins.txt \
'zsh-users/zsh-autosuggestions'
'';
}