nixos-configs/common/home/bash/programs.nix

59 lines
978 B
Nix
Raw Normal View History

{
pkgs,
config,
...
}: {
2023-10-15 16:05:28 -04:00
programs = {
fzf = {
enable = true;
enableBashIntegration = true;
};
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 ";
};
};
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-15 16:05:28 -04:00
jq.enable = true;
2023-10-15 16:23:28 -04:00
htop.enable = true;
bat = {
enable = true;
config = {
theme = "dracula-bat";
};
themes = {
dracula-bat = {
src = pkgs.dracula-theme;
file = "bat";
};
};
extraPackages = with pkgs.bat-extras; [
batman
];
};
2023-10-15 16:05:28 -04:00
};
}