1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 19:29:47 +01:00
home-manager/tests/modules/programs/pay-respects/integration-enabled.nix
Nicholas Ciechanowski db9a98e178
pay-respects: add module
Add pay-respects module including shell integration support for bash,
zsh, fish and nushell.
2024-12-21 18:13:06 +01:00

33 lines
886 B
Nix

{ ... }: {
programs = {
pay-respects.enable = true;
bash.enable = true;
zsh.enable = true;
fish.enable = true;
nushell.enable = true;
};
test.stubs.pay-respects = { };
nmt.script = ''
assertFileExists home-files/.bashrc
assertFileContains \
home-files/.bashrc \
'eval "$(@pay-respects@/bin/dummy bash --alias)"'
assertFileExists home-files/.zshrc
assertFileContains \
home-files/.zshrc \
'eval "$(@pay-respects@/bin/dummy zsh --alias)"'
assertFileExists home-files/.config/fish/config.fish
assertFileContains \
home-files/.config/fish/config.fish \
'@pay-respects@/bin/dummy fish --alias | source'
assertFileExists home-files/.config/nushell/config.nu
assertFileContains \
home-files/.config/nushell/config.nu \
'@pay-respects@/bin/dummy nushell --alias [<alias>]'
'';
}