1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 03:39:47 +01:00
home-manager/tests/modules/programs/readline/using-all-options.nix

35 lines
591 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.readline = {
enable = true;
bindings = {
"\\C-h" = "backward-kill-word";
"Control-p" = ''"whups"'';
};
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}
'';
};
}