diff options
| author | Martin Fischer <martin@push-f.com> | 2026-01-25 21:25:01 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-01-25 21:25:01 +0100 |
| commit | 1b22a987b3a7a69bfaf266949da183f71cfa51a6 (patch) | |
| tree | 5c517993f96ae51aefdad72e0dff745356568476 /nixos | |
| parent | e4cded383c96efc0ddde2d2dc73ae1e8a667f8a1 (diff) | |
tweak(common): set editing-mode vi in /etc/inputrc
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/profiles/common/basics.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/profiles/common/basics.nix b/nixos/profiles/common/basics.nix index eee0e96..e9fadb4 100644 --- a/nixos/profiles/common/basics.nix +++ b/nixos/profiles/common/basics.nix @@ -1,4 +1,4 @@ -{ lib, config, pkgs, ... }: +{ lib, config, pkgs, modulesPath, ... }: { environment.systemPackages = with pkgs; [ @@ -36,4 +36,10 @@ # without this `apropos` doesn't work documentation.man.generateCaches = true; + + # system-wide vi-mode in readline (handy when executing sqlite3 as root) + environment.etc.inputrc.text = '' + ${builtins.readFile "${modulesPath}/programs/bash/inputrc"} + set editing-mode vi + ''; } |
