From 104251eaf7725dd75f7fa7971211fdca7032f9d3 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 14 Feb 2017 01:43:24 -0500 Subject: [PATCH] Replace ag with a better alternative --- shells/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shells/zshrc b/shells/zshrc index e369b53..731f00e 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -319,7 +319,11 @@ fi alias -g nify=" > /dev/null 2>&1 &" alias -g nifyd=" > /dev/null 2>&1 & disown" alias -g L="2>&1|less" -if ex ag; then +if ex rg; then + alias -g G='|& rg' + # I'm so sorry ggreer + alias ag=rg +elif ex ag; then alias -g G='|& ag' elif ex egrep; then alias -g G='|& egrep'