fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Erik Kriegzellij: disables shell integrations by default (#3981)70c8bd08

master
1002 B41 linesraw
1{ lib, ... }:
2
3{
4  programs = {
5    zellij = {
6      enable = true;
7      enableBashIntegration = true;
8      enableZshIntegration = true;
9      enableFishIntegration = true;
10    };
11    bash.enable = true;
12    zsh.enable = true;
13    fish.enable = true;
14  };
15
16  # Needed to avoid error with dummy fish package.
17  xdg.dataFile."fish/home-manager_generated_completions".source =
18    lib.mkForce (builtins.toFile "empty" "");
19
20  test.stubs = {
21    zsh = { };
22    zellij = { };
23  };
24
25  nmt.script = ''
26    assertFileExists home-files/.bashrc
27    assertFileContains \
28      home-files/.bashrc \
29      'eval "$(zellij setup --generate-auto-start bash)"'
30
31    assertFileExists home-files/.zshrc
32    assertFileContains \
33      home-files/.zshrc \
34      'eval "$(zellij setup --generate-auto-start zsh)"'
35
36    assertFileExists home-files/.config/fish/config.fish
37    assertFileContains \
38      home-files/.config/fish/config.fish \
39      'eval (zellij setup --generate-auto-start fish | string collect)'
40  '';
41}