bash history now in hostname subfolder

This commit is contained in:
Sebastian Moser
2023-11-10 18:08:12 +01:00
parent dca6b03573
commit bbfac53f51
2 changed files with 6 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
{ persistentDir, confDir, ... }:
{ persistentDir, confDir, hostname, ... }:
{
programs.bash = {
enable = true;
enableCompletion = true;
historyFile = "${persistentDir}/bash-history";
historyFile = "${persistentDir}/${hostname}/bash-history";
historyFileSize = 100000;
historyControl = [ "ignoredups" ];
historyIgnore = [