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

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

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