diff options
author | tv <tv@krebsco.de> | 2024-01-10 22:25:40 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2024-01-10 23:56:29 +0100 |
commit | 1db82922dcff661670a47cb081046ce14db81a72 (patch) | |
tree | ccbfa95763f5accdbad9d5e3a37db387e2a2985d /configs/bash | |
parent | 3281c4f57c0938a6be54e5bbf3e58fc32286aad1 (diff) |
bash: use vi editing mode
Diffstat (limited to 'configs/bash')
-rw-r--r-- | configs/bash/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/bash/default.nix b/configs/bash/default.nix index 2e18d5b..46b90b1 100644 --- a/configs/bash/default.nix +++ b/configs/bash/default.nix @@ -1,4 +1,13 @@ { config, mylib, pkgs, ... }: { + environment.etc.inputrc.source = pkgs.writeText "inputrc" /* readline */ '' + set bell-style visible + set colored-stats on + set editing-mode vi + set show-mode-in-prompt on + # [cursor] keep in sync with <hrm/configs/vim.nix> + set vi-ins-mode-string \1\e[6 q\2 + set vi-cmd-mode-string \1\e[2 q\2 + ''; programs.bash = { interactiveShellInit = /* sh */ '' HISTCONTROL='erasedups:ignorespace' |