home-manager/tests/modules/programs/rtx/bash-integration.nix

17 lines
325 B
Nix
Raw Normal View History

2023-06-07 08:32:56 +00:00
{ config, ... }: {
programs = {
rtx = {
package = config.lib.test.mkStubPackage { name = "rtx"; };
enable = true;
enableBashIntegration = true;
};
bash.enable = true;
};
nmt.script = ''
assertFileRegex home-files/.bashrc 'eval "$(/nix/store/.*rtx.*/bin/rtx activate bash)"'
'';
}