programs: add readline

This commit is contained in:
2025-05-14 07:49:55 +00:00
parent c645a73e2e
commit 97d789c52a
3 changed files with 20 additions and 0 deletions

View File

@@ -172,6 +172,7 @@ in
"pulsemixer"
"python3-repl"
# "python3.pkgs.eyeD3" # music tagging
"readline" # for the config
"ripgrep" # needed as a user package so that its user-level config file can be installed
# "rsyslog" # KEEP THIS HERE if you want persistent logging (TODO: port to systemd, store in /var/log/...)
"sane-deadlines"

View File

@@ -159,6 +159,7 @@
./playerctl.nix
./qmk-udev-rules.nix
./radicale.nix
./readline.nix
./rhythmbox.nix
./ripgrep.nix
./rofi

View File

@@ -0,0 +1,18 @@
{ ... }:
{
sane.programs.readline = {
packageUnwrapped = null; # this 'program' is a library: we only care to ship the _config_.
fs.".inputrc".symlink.text = ''
# docs: <https://tiswww.case.edu/php/chet/readline/readline.html>
set blink-matching-paren on
set colored-completion-prefix on
set colored-stats on
set editing-mode vi
set mark-symlinked-directories on
# TODO: print completions in reading order, but only after i configure `ls`/`eza` to do the same.
# set print-completions-horizontally on
set show-all-if-ambiguous on
'';
};
}