home-manager/tests/modules/programs/carapace/fish.nix

19 lines
488 B
Nix
Raw Normal View History

2023-09-03 10:09:45 +00:00
{ ... }:
{
programs = {
carapace.enable = true;
fish.enable = true;
};
nmt.script = ''
assertFileExists home-files/.config/fish/config.fish
assertFileRegex home-files/.config/fish/config.fish \
'/nix/store/.*carapace.*/bin/carapace _carapace fish \| source'
# Check whether completions are overridden.
assertFileExists home-files/.config/fish/completions/git.fish
assertFileContent home-files/.config/fish/completions/git.fish /dev/null
'';
}