2024-11-22 17:58:24 -05:00
|
|
|
self: {
|
2023-12-01 14:12:33 -05:00
|
|
|
config,
|
2024-11-22 17:58:24 -05:00
|
|
|
lib,
|
|
|
|
pkgs,
|
2023-12-01 14:12:33 -05:00
|
|
|
...
|
2024-11-22 17:58:24 -05:00
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
|
|
|
|
cfg = config.programs.bash;
|
|
|
|
in {
|
|
|
|
config.programs = mkIf cfg.enable {
|
2023-10-15 16:05:28 -04:00
|
|
|
fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
};
|
2023-10-20 16:22:28 -04:00
|
|
|
|
2024-04-09 09:16:54 -04:00
|
|
|
bash = {
|
|
|
|
sessionVariables = {
|
|
|
|
inherit (config.home.sessionVariables) RIPGREP_CONFIG_PATH;
|
|
|
|
};
|
|
|
|
|
|
|
|
shellAliases = {
|
|
|
|
rg = "rga";
|
|
|
|
cat = "bat ";
|
|
|
|
man = "BAT_THEME='default' batman ";
|
|
|
|
};
|
2023-12-01 12:39:16 -05:00
|
|
|
};
|
2024-04-09 09:16:54 -04:00
|
|
|
|
2023-10-15 16:05:28 -04:00
|
|
|
ripgrep = {
|
|
|
|
enable = true;
|
2024-04-09 09:16:54 -04:00
|
|
|
package = pkgs.ripgrep-all;
|
|
|
|
|
2023-10-15 16:05:28 -04:00
|
|
|
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
|
|
|
|
|
|
|
bat = {
|
|
|
|
enable = true;
|
2024-06-08 23:40:44 -04:00
|
|
|
|
|
|
|
config.theme = "dracula-bat";
|
2024-11-20 15:17:55 -05:00
|
|
|
themes.dracula-bat.src = self.scopedPackages.${pkgs.system}.dracula.bat;
|
2024-06-08 23:40:44 -04:00
|
|
|
|
2024-08-31 19:16:06 -04:00
|
|
|
extraPackages = builtins.attrValues {
|
|
|
|
inherit (pkgs.bat-extras) batman;
|
|
|
|
};
|
2023-10-20 16:22:28 -04:00
|
|
|
};
|
2023-10-15 16:05:28 -04:00
|
|
|
};
|
2024-11-22 17:58:24 -05:00
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./default.nix;
|
2023-10-15 16:05:28 -04:00
|
|
|
}
|