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

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

	config = lib.mkIf config.zsh.enable {
		programs.zsh.enable = true;
		programs.zsh.dotDir = ".config/zsh";
		programs.zsh.history.path = "${config.xdg.cacheHome}/zsh/history";
		programs.zsh.initExtra = builtins.readFile ./zshrc;
		programs.zsh.shellAliases = config.programs.bash.shellAliases;
	};
}