nixos-configs/common/home/bash/programs.nix
matt1432 907ad13aa8
All checks were successful
Discord / discord commits (push) Has been skipped
style: add lang comments for treesitter language injection
2024-01-08 11:25:18 -05:00

53 lines
957 B
Nix

{
pkgs,
config,
...
}: {
programs = {
fzf = {
enable = true;
enableBashIntegration = true;
};
bash.sessionVariables = {
# FIXME: why is this not set by home-manager?
RIPGREP_CONFIG_PATH = "${config.xdg.configHome}/ripgrep/ripgreprc";
};
ripgrep = {
enable = true;
arguments = [
"--max-columns=150"
"--max-columns-preview"
"--hidden"
"--glob=!.git/*"
"--smart-case"
"--sort"
"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;
file = "bat";
};
};
extraPackages = with pkgs.bat-extras; [
batman
];
};
};
}