home: readline .inputrc

This commit is contained in:
Peder Bergebakken Sundt 2025-01-29 10:25:06 +01:00
parent c9d5efc1c7
commit 5250262df5

View File

@ -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