aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/hjem/programs/fish.nix
blob: 1aa4a40225c00029a4deec37d8c97d4f959326f3 (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
30
31
32
33
34
35
{
  pkgs,
  config,
  lib,
  ...
}: let
  cfg = config.collinux.terminal.shells.fish;
in
  lib.mkIf cfg.enable {
    files = {
      ".config/fish/config.fish".text = ''
        set fish_greeting

        function fish_title
            echo fish (prompt_pwd)
        end

        direnv hook fish | source
        pay-respects fish --alias | source
      '';
    };

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