refactor(shell): nixify bash history config

This commit is contained in:
2026-08-23 13:32:24 +02:00
parent 31e2bae402
commit 86e780da0d
2 changed files with 16 additions and 7 deletions
+16
View File
@@ -37,6 +37,22 @@ in
programs.bash = {
enable = true;
enableCompletion = true;
historySize = 999999;
historyFileSize = -1; # unlimited
historyControl = [
"ignoreboth"
"erasedups"
];
# omit commands from history (e.g. those prepended with space)
historyIgnore = [
" *"
"clear"
"l"
"ls"
"cd"
];
initExtra = ''
for f in /home/${username}/.bashrc.d/*; do
[ -f "$f" ] && source "$f"