fork/home-manager

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

ilaumjdscmpuff: enable or disable aliases55ce64c3

master
920 B34 linesraw
1{ lib, ... }:
2
3{
4  programs = {
5    scmpuff.enable = true;
6    scmpuff.enableAliases = false;
7    bash.enable = true;
8    fish.enable = true;
9    zsh.enable = true;
10  };
11
12  # Needed to avoid error with dummy fish package.
13  xdg.dataFile."fish/home-manager_generated_completions".source =
14    lib.mkForce (builtins.toFile "empty" "");
15
16  test.stubs.scmpuff = { };
17
18  nmt.script = ''
19    assertFileExists home-files/.bashrc
20    assertFileContains \
21      home-files/.bashrc \
22      'eval "$(@scmpuff@/bin/scmpuff init --shell=bash --aliases=false)"'
23
24    assertFileExists home-files/.zshrc
25    assertFileContains \
26      home-files/.zshrc \
27      'eval "$(@scmpuff@/bin/scmpuff init --shell=zsh --aliases=false)"'
28
29    assertFileExists home-files/.config/fish/config.fish
30    assertFileContains \
31      home-files/.config/fish/config.fish \
32      '@scmpuff@/bin/scmpuff init --shell=fish --aliases=false | source'
33  '';
34}