2019-12-08 21:11:08 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.readline = {
|
|
|
|
enable = true;
|
|
|
|
|
2023-05-04 19:39:46 +02:00
|
|
|
bindings = {
|
|
|
|
"\\C-h" = "backward-kill-word";
|
|
|
|
"Control-p" = ''"whups"'';
|
|
|
|
};
|
2019-12-08 21:11:08 +01:00
|
|
|
|
|
|
|
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}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|