From 3ce33a1d3f0784377bd6167326728053377b46ae Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 25 Jun 2024 23:43:59 -0400 Subject: [PATCH] apps/bash: shell agnostic aliases + ripgrep --- homeManagerModules/apps/bash/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/homeManagerModules/apps/bash/default.nix b/homeManagerModules/apps/bash/default.nix index 68219b86..7ed4ad2c 100644 --- a/homeManagerModules/apps/bash/default.nix +++ b/homeManagerModules/apps/bash/default.nix @@ -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"]; + }; }; }; }