From 5250262df566658b5944ca3b454010dbcd329817 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 29 Jan 2025 10:25:06 +0100 Subject: [PATCH] home: readline .inputrc --- users/pbsds/home/profiles/shell.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/users/pbsds/home/profiles/shell.nix b/users/pbsds/home/profiles/shell.nix index cadff49..f89a19c 100644 --- a/users/pbsds/home/profiles/shell.nix +++ b/users/pbsds/home/profiles/shell.nix @@ -8,7 +8,6 @@ let in { - # TODO: "bind -s 'set completion-ignore-case on'" programs.bash.enable = true; #programs.bash.enableCompletion = true; programs.bash.shellOptions = [ @@ -24,14 +23,30 @@ in "checkjobs" ]; programs.bash.initExtra = '' - bind 'set completion-ignore-case on' - # tldr if command -v tldr >/dev/null; then complete -F _command tldr fi ''; + # ~/.inputrc + programs.readline = { + enable = true; + #bindings = { }; + variables = { + # https://man.archlinux.org/man/core/readline/readline.3.en#Variables + completion-ignore-case = true; + blink-matching-paren = true; # briefly move cursor to opening parenthesis when a closing parenthesis is inserted + colored-completion-prefix = true; # color common prefix of possible completions ($LS_COLORS) + colored-stats = true; # displays completions with different colors to indicate file type ($LS_COLORS) + enable-bracketed-paste = true; + #match-hidden-files = true; + #show-all-if-ambiguous = true; + mark-symlinked-directories = true; # completed names which are symbolic links to directories have a slash appended + }; + }; + + imports = [ ../profiles/bashrc.d ../modules/jump.nix