fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Nathan Henriereadline: Add support for keynames (#3947)f3824311

master
591 B34 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.readline = {
8      enable = true;
9
10      bindings = {
11        "\\C-h" = "backward-kill-word";
12        "Control-p" = ''"whups"'';
13      };
14
15      variables = {
16        bell-style = "audible";
17        completion-map-case = true;
18        completion-prefix-display-length = 2;
19      };
20
21      extraConfig = ''
22        $if mode=emacs
23        "\e[1~": beginning-of-line
24        $endif
25      '';
26    };
27
28    nmt.script = ''
29      assertFileContent \
30        home-files/.inputrc \
31        ${./using-all-options.txt}
32    '';
33  };
34}