home: readline .inputrc
This commit is contained in:
parent
c9d5efc1c7
commit
5250262df5
@ -8,7 +8,6 @@ let
|
|||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
# TODO: "bind -s 'set completion-ignore-case on'"
|
|
||||||
programs.bash.enable = true;
|
programs.bash.enable = true;
|
||||||
#programs.bash.enableCompletion = true;
|
#programs.bash.enableCompletion = true;
|
||||||
programs.bash.shellOptions = [
|
programs.bash.shellOptions = [
|
||||||
@ -24,14 +23,30 @@ in
|
|||||||
"checkjobs"
|
"checkjobs"
|
||||||
];
|
];
|
||||||
programs.bash.initExtra = ''
|
programs.bash.initExtra = ''
|
||||||
bind 'set completion-ignore-case on'
|
|
||||||
|
|
||||||
# tldr
|
# tldr
|
||||||
if command -v tldr >/dev/null; then
|
if command -v tldr >/dev/null; then
|
||||||
complete -F _command tldr
|
complete -F _command tldr
|
||||||
fi
|
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 = [
|
imports = [
|
||||||
../profiles/bashrc.d
|
../profiles/bashrc.d
|
||||||
../modules/jump.nix
|
../modules/jump.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user