Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Huber <[email protected]>
  • Loading branch information
maxhbr committed Aug 24, 2024
1 parent 2d220de commit 97b0b50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/shell.programs.bat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
home-manager.sharedModules = [
({pkgs, lib, config, ...}:{
config = lib.mkIf config.programs.bat.enable (let
theme = "Monokai Extended Light";
aliases = {
cat = ''${pkgs.bat}/bin/bat''; # --theme="Monokai Extended Light"'';
cat = ''${pkgs.bat}/bin/bat --theme="${theme}"'';
};
in
{
programs.bat = {
extraPackages = with pkgs.bat-extras; [
# batdiff
# batdiff # fails to compile
batman
batgrep
batwatch
];
config = {
pager = "less -FR";
theme = "Monokai Extended Light";
inherit theme;
};
};
programs.bash.shellAliases = aliases;
Expand Down

0 comments on commit 97b0b50

Please sign in to comment.