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 {
home.shellAliases = {
cat = lib.getExe pkgs.bat;
grep = lib.getExe config.programs.ripgrep.package;
};
programs = {
bash = {
enable = true;
@ -24,10 +29,8 @@
initExtra = ''
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 = {
enable = true;
extraOptions = ["--group-directories-first" "--header"];
@ -40,7 +43,10 @@
tmux.enableShellIntegration = true;
};
ripgrep.enable = true;
ripgrep = {
enable = true;
arguments = ["--pretty"];
};
};
};
}