1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

readline: fix example

This commit is contained in:
Robert Helgesson 2020-02-02 00:58:06 +01:00
parent 70af3b126a
commit a4a07ba996
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 5 additions and 3 deletions

View file

@ -30,7 +30,9 @@ in {
bindings = mkOption { bindings = mkOption {
default = { }; default = { };
type = types.attrsOf types.str; type = types.attrsOf types.str;
example = { "\\C-h" = "backward-kill-word"; }; example = literalExample ''
{ "\\C-h" = "backward-kill-word"; }
'';
description = "Readline bindings."; description = "Readline bindings.";
}; };

View file

@ -7,7 +7,7 @@ with lib;
programs.readline = { programs.readline = {
enable = true; enable = true;
bindings = { "C-h" = "backward-kill-word"; }; bindings = { "\\C-h" = "backward-kill-word"; };
variables = { variables = {
bell-style = "audible"; bell-style = "audible";

View file

@ -4,7 +4,7 @@ $include /etc/inputrc
set bell-style audible set bell-style audible
set completion-map-case on set completion-map-case on
set completion-prefix-display-length 2 set completion-prefix-display-length 2
"C-h": backward-kill-word "\C-h": backward-kill-word
$if mode=emacs $if mode=emacs
"\e[1~": beginning-of-line "\e[1~": beginning-of-line
$endif $endif