2023-12-01 14:12:33 -05:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2023-10-15 16:05:28 -04:00
|
|
|
programs = {
|
|
|
|
fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
};
|
2023-10-20 16:22:28 -04:00
|
|
|
|
2023-12-01 12:39:16 -05:00
|
|
|
bash.sessionVariables = {
|
|
|
|
# FIXME: why is this not set by home-manager?
|
|
|
|
"RIPGREP_CONFIG_PATH" = "${config.xdg.configHome}/ripgrep/ripgreprc";
|
|
|
|
};
|
2023-10-15 16:05:28 -04:00
|
|
|
ripgrep = {
|
|
|
|
enable = true;
|
|
|
|
arguments = [
|
2023-10-15 16:16:31 -04:00
|
|
|
"--max-columns=150"
|
|
|
|
"--max-columns-preview"
|
|
|
|
"--hidden"
|
|
|
|
"--glob=!.git/*"
|
|
|
|
"--smart-case"
|
2023-10-16 19:00:06 -04:00
|
|
|
"--sort"
|
|
|
|
"path"
|
2023-10-15 16:05:28 -04:00
|
|
|
];
|
|
|
|
};
|
2023-10-20 16:22:28 -04:00
|
|
|
|
2023-10-15 16:05:28 -04:00
|
|
|
jq.enable = true;
|
2023-10-15 16:23:28 -04:00
|
|
|
htop.enable = true;
|
2023-10-20 16:22:28 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
2023-10-15 16:05:28 -04:00
|
|
|
};
|
|
|
|
}
|