From 58ade9d886a770a657403b9c2c57600b963a4504 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Tue, 9 Jun 2026 17:38:48 +0000 Subject: [PATCH] Finish migrating from ag to rg --- migrated/.zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/migrated/.zshrc b/migrated/.zshrc index 69051cf..256df42 100644 --- a/migrated/.zshrc +++ b/migrated/.zshrc @@ -62,7 +62,6 @@ alias grep='grep --line-buffered --color=auto' alias ipt='iptables -nvL --line-numbers' alias ip6t='ip6tables -nvL --line-numbers' alias tcpdump='tcpdump -l' -alias ag='ag -C 2 --noaffinity --pager="$PAGER" --smart-case' alias mysql='mysql --select_limit=1000' alias logcat='adb logcat -v "color printable usec year zone" -T 10' alias readelf='readelf -W' @@ -81,6 +80,10 @@ starttransfer: %{time_starttransfer} | \ total: %{time_total} | \ size: %{size_download}\n"' +rg() { + command rg -C 2 --smart-case --pretty "$@" | pager +} + # nix-deploy # current host # nix-deploy nas # deploy nas # nix-deploy test secondary # deploy secondary but do not add to boot