aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/bash/default.nix
blob: f26e3d8fcab30514c94eca7c666f0fa17deb9cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ config, lib, ... }:

{
	options = {
		bash.enable = lib.mkEnableOption "Enables bash.";
	};

	config = lib.mkIf config.bash.enable {
		programs.bash.enable = true;
		programs.bash.historyFile = "${config.xdg.cacheHome}/bash/history";
		home.file."${config.xdg.cacheHome}/bash/histroy".text = ""; # Create the cache directory and histroy file
	};
}