diff --git a/common/modules/bash/default.nix b/common/modules/bash/default.nix index ab919f63..6702b311 100644 --- a/common/modules/bash/default.nix +++ b/common/modules/bash/default.nix @@ -1,6 +1,6 @@ # Home-manager module -{ lib, ... }: { +{ config, lib, ... }: { imports = [ ./programs.nix ]; @@ -144,7 +144,9 @@ jelly = "mosh matt@10.0.0.121 -- ssh -t matt@10.0.0.123 'tmux -2u new -At laptop'"; qbit = "mosh matt@10.0.0.121 -- ssh -t matt@10.0.0.128 'tmux -2u new -At laptop'"; }; - sessionVariables = { # see configuration.nix + sessionVariables = { + # FIXME: why is this not set by home-manager? + "RIPGREP_CONFIG_PATH" = "${config.xdg.configHome}/ripgrep/ripgreprc"; }; profileExtra = '' diff --git a/common/modules/bash/programs.nix b/common/modules/bash/programs.nix index 2869f971..1876be8d 100644 --- a/common/modules/bash/programs.nix +++ b/common/modules/bash/programs.nix @@ -7,7 +7,11 @@ ripgrep = { enable = true; arguments = [ - "--no-config" + "--max-columns=150" + "--max-columns-preview" + "--hidden" + "--glob=!.git/*" + "--smart-case" ]; }; jq.enable = true;