aboutsummaryrefslogtreecommitdiffstats
path: root/modules/terminal/less/default.nix
blob: b2d2ac6d928d81915bd5cc5f1f8a515a9b8840c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# less - terminal pager
{ config, lib, ... }:
{
  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"
      ];
    };
  };
}