aboutsummaryrefslogtreecommitdiff
path: root/programs/readline.nix
blob: be43ace2b19196f2da8f8ce0ca0710646c17ca4b (plain)
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 = {
      "\\C-o" = ''"$HOME/scripts/tmux-fzf.sh\n"'';
      "\\t" = "menu-complete";
      "\\e[Z" = "menu-complete-backward";
    };
    variables = {
      "completion-ignore-case" = "on";
      "show-all-if-ambiguous" = "on";
      "colored-stats" = "on";
      "completion-display-width" = 4;
      "enable-bracketed-paste" = "on";
    };
  };
}