feat: add bat, batman and delta to common shell commands

This commit is contained in:
matt1432 2023-10-20 16:22:28 -04:00
parent 4c180c599d
commit 974a34fecb
3 changed files with 56 additions and 1 deletions
common/modules/bash

View file

@ -1,9 +1,10 @@
{ ... }: {
{ pkgs, ... }: {
programs = {
fzf = {
enable = true;
enableBashIntegration = true;
};
ripgrep = {
enable = true;
arguments = [
@ -16,7 +17,28 @@
"path"
];
};
jq.enable = true;
htop.enable = true;
bash.shellAliases = {
cat = "bat ";
man = "BAT_THEME='default' batman ";
};
bat = {
enable = true;
config = {
theme = "dracula-bat";
};
themes = {
dracula-bat = {
src = "${pkgs.dracula-theme}/bat";
file = "dracula-bat.tmTheme";
};
};
extraPackages = with pkgs.bat-extras; [
batman
];
};
};
}