about summary refs log tree commit diff stats
path: root/hm/soispha/conf/less/default.nix
blob: c9109dd86fa67bc981573b4668c14be20e129ca1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{config, ...}: {
  home.sessionVariables = {
    PAGER = "less";
    MANPAGER = "less";
  };
  programs.less = {
    enable = true;
    keys =
      builtins.readFile ./command.less
      + builtins.readFile
      ./line-edit.less
      + builtins.readFile ./env.less
      # This next line *must* be under `./env.less` as it adds to the definitions
      + ''
        LESSHISTFILE = ${config.xdg.dataHome}/less/history
      '';
  };
}