aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/hjem/programs/bash.nix
blob: 646cbf82c938e79d20abd6c6b9392b96b7322efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  pkgs,
  config,
  lib,
  ...
}: let
  cfg = config.collinux.terminal.shells.bash;
in
  lib.mkIf cfg.enable {
    files = {
      ".bashrc".text = ''
        eval "$(direnv hook bash)"

        for file in ~/.config/bash/conf.d/*; do source "$file"; done
      '';

      packages = with pkgs; [
        fish
        ripgrep
        fd
        moreutils
        zip
        unzip
        btop
        jq
        direnv
      ];
    };
  }