From 2b8fc665f6d152fa82ea60eedbee42bde36c8cc9 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 24 Aug 2024 11:55:07 -0400 Subject: [PATCH] meta: Prefer home-manager module over alias for ripgrep Aliases should be avoided since they are only relevant to one shell. --- home/fish.nix | 1 - home/ripgrep.nix | 10 ++++++++++ modules/shell.nix | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 home/ripgrep.nix diff --git a/home/fish.nix b/home/fish.nix index 08bf9a97..5d37d157 100644 --- a/home/fish.nix +++ b/home/fish.nix @@ -27,7 +27,6 @@ tree = "eza --all --long --tree"; mv = "mv -i"; cp = "cp -ia"; - rg = "rg --max-columns=2000 --smart-case"; }; shellAbbrs = { diff --git a/home/ripgrep.nix b/home/ripgrep.nix new file mode 100644 index 00000000..50cef07d --- /dev/null +++ b/home/ripgrep.nix @@ -0,0 +1,10 @@ +{ + programs.ripgrep = { + enable = true; + + arguments = [ + "--max-columns=2000" + "--smart-case" + ]; + }; +} diff --git a/modules/shell.nix b/modules/shell.nix index 5d79c2f4..323d07a3 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -21,7 +21,6 @@ in jq fd fzf - ripgrep xh file timg