1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-19 08:19:48 +01:00
home-manager/tests/modules/programs/readline/using-all-options.nix
Robert Helgesson 284b8d94d4
readline: add variables option
Also add a basic test case.
2019-12-08 21:13:58 +01:00

33 lines
555 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.readline = {
enable = true;
bindings = {
"\C-h" = "backward-kill-word";
};
variables = {
bell-style = "audible";
completion-map-case = true;
completion-prefix-display-length = 2;
};
extraConfig = ''
$if mode=emacs
"\e[1~": beginning-of-line
$endif
'';
};
nmt.script = ''
assertFileContent \
home-files/.inputrc \
${./using-all-options.txt}
'';
};
}