aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/hjem/programs/eza.nix
blob: b900cebab91de4d814bd7feef57dce19a716ebbd (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
{
  pkgs,
  lib,
  config,
  ...
}: let
  cfg = config.collinux.terminal.programs.eza;
in
  lib.mkIf cfg.enable {
    files =
      (lib.optionalAttrs config.collinux.terminal.shells.fish.enable {
        ".config/fish/conf.d/eza.fish".text = ''
          alias ls "eza -A -w 80 --group-directories-first -I '.git*'"
          alias tree "eza -T"
        '';
      })
      // (lib.optionalAttrs config.collinux.terminal.shells.fish.enable {
        ".config/bash/conf.d/eza.bash".text = ''
          alias ls="eza -A -w 80 --group-directories-first -I '.git*'"
          alias tree="eza -T"
        '';
      });

    packages = [pkgs.eza];
  }