aboutsummaryrefslogtreecommitdiffstats
path: root/modules/terminal/less/default.nix
blob: 87854988d452a69f2e6444cd0aa1a17b0851d92a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, ... }:

# less - terminal pager
{
  options.terminal.less = {
    enable = lib.mkEnableOption "Enables less.";
  };

  config = lib.mkIf config.terminal.less.enable {
    programs.less = {
      enable = true;
      options = [
        "--RAW-CONTROL-CHARS"
        "--quit-if-one-screen"
        "--no-init"
        "--ignore-case"
      ];
    };
  };
}