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