Replace ag with a better alternative

This commit is contained in:
Austen Adler 2017-02-14 01:43:24 -05:00
parent bbe488beb3
commit 104251eaf7
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

View File

@ -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'