2021-08-06 20:55:57 +00:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2021-05-09 22:13:10 +00:00
|
|
|
config = {
|
|
|
|
programs.bash.enable = true;
|
|
|
|
programs.fish.enable = true;
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
|
|
|
programs.command-not-found.enable = true;
|
|
|
|
|
2021-08-06 20:55:57 +00:00
|
|
|
# Needed to avoid error with dummy fish package.
|
|
|
|
xdg.dataFile."fish/home-manager_generated_completions".source =
|
|
|
|
lib.mkForce (builtins.toFile "empty" "");
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
test.stubs = {
|
|
|
|
zsh = { };
|
|
|
|
fish = { };
|
|
|
|
};
|
2021-05-09 22:13:10 +00:00
|
|
|
|
|
|
|
programs.nix-index.enable = true;
|
|
|
|
|
|
|
|
# 'command-not-found' does not have a 'fish' integration
|
|
|
|
test.asserts.assertions.expected = [
|
|
|
|
''
|
|
|
|
The 'programs.command-not-found.enable' option is mutually exclusive
|
|
|
|
with the 'programs.nix-index.enableBashIntegration' option.
|
|
|
|
''
|
|
|
|
''
|
|
|
|
The 'programs.command-not-found.enable' option is mutually exclusive
|
|
|
|
with the 'programs.nix-index.enableZshIntegration' option.
|
|
|
|
''
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|