24 lines
557 B
Nix
24 lines
557 B
Nix
{ pkgs, ... }:
|
|
let
|
|
catppuccin-bat = pkgs.fetchFromGitHub {
|
|
owner = "catppuccin";
|
|
repo = "bat";
|
|
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
|
sha256 = "1g2r6j33f4zys853i1c5gnwcdbwb6xv5w6pazfdslxf69904lrg9";
|
|
};
|
|
in {
|
|
programs.bat = {
|
|
enable = true;
|
|
themes = {
|
|
catppuccin =
|
|
builtins.readFile "${catppuccin-bat}/Catppuccin-mocha.tmTheme";
|
|
};
|
|
config.theme = "catppuccin";
|
|
extraPackages = with pkgs.bat-extras; [ batman ];
|
|
};
|
|
programs.zsh.shellAliases = {
|
|
cat = "bat";
|
|
man = "batman";
|
|
};
|
|
}
|