feat: add bat, batman and delta to common shell commands
This commit is contained in:
parent
4c180c599d
commit
974a34fecb
3 changed files with 56 additions and 1 deletions
common/modules/bash
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue