apps/bash: shell agnostic aliases + ripgrep

This commit is contained in:
Aly Raffauf 2024-06-25 23:43:59 -04:00
parent 88a65597a5
commit 3ce33a1d3f

View file

@ -5,6 +5,11 @@
... ...
}: { }: {
config = lib.mkIf config.alyraffauf.apps.bash.enable { config = lib.mkIf config.alyraffauf.apps.bash.enable {
home.shellAliases = {
cat = lib.getExe pkgs.bat;
grep = lib.getExe config.programs.ripgrep.package;
};
programs = { programs = {
bash = { bash = {
enable = true; enable = true;
@ -24,10 +29,8 @@
initExtra = '' initExtra = ''
export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ " export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ "
''; '';
shellAliases = {
cat = lib.getExe pkgs.bat;
};
}; };
eza = { eza = {
enable = true; enable = true;
extraOptions = ["--group-directories-first" "--header"]; extraOptions = ["--group-directories-first" "--header"];
@ -40,7 +43,10 @@
tmux.enableShellIntegration = true; tmux.enableShellIntegration = true;
}; };
ripgrep.enable = true; ripgrep = {
enable = true;
arguments = ["--pretty"];
};
}; };
}; };
} }