all repos — dotfiles @ 05b7061804b256784b5881e7737ea2359356369f

my *nix dotfiles

programs/readline.nix (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
{ config
, pkgs
, ...
}:

{
  programs.readline = {
    enable = true;
    bindings = {
      "\\t" = "menu-complete";
      "\\e[Z" = "menu-complete-backward";
      "\\C-w" = "backward-kill-word";
    };
    variables = {
      "completion-ignore-case" = "on";
      "show-all-if-ambiguous" = "on";
      "colored-stats" = "on";
      "completion-display-width" = 4;
      "enable-bracketed-paste" = "on";
    };
  };
}