mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 13:13:26 +00:00
f3824311a1
Kenames like `Control-n` or `meta-p` should not be quoted or they don't work. Keyseqs like `\C-p` or `ab` must continue to be quoted. See also: https://www.gnu.org/software/bash/manual/html_node/Readline-Init-File-Syntax.html Fixes https://github.com/nix-community/home-manager/issues/3611
34 lines
591 B
Nix
34 lines
591 B
Nix
{ 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}
|
|
'';
|
|
};
|
|
}
|