mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
db9a98e178
Add pay-respects module including shell integration support for bash, zsh, fish and nushell.
33 lines
886 B
Nix
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>]'
|
|
'';
|
|
}
|