From 5af7a16deaf14e5c679888e945b91f52ba7cb0ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sven=20M=C3=A4der?= <maeder@phys.ethz.ch>
Date: Fri, 7 Oct 2022 10:50:05 +0200
Subject: [PATCH] Update aliases for git grep, add rg, snk

---
 profile/default/envrcd.d/20-aliases | 4 +++-
 profile/rda/.gitconfig              | 2 +-
 profile/rda/envrcd.d/20-aliases     | 5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/profile/default/envrcd.d/20-aliases b/profile/default/envrcd.d/20-aliases
index bf3bcb5..a7ab0f9 100644
--- a/profile/default/envrcd.d/20-aliases
+++ b/profile/default/envrcd.d/20-aliases
@@ -27,6 +27,7 @@ alias lla='ls -hlAF'
 alias lsa='ls -AF'
 alias llt='ls -hlFtr'
 alias lat='ls -hlAFtr'
+alias snk='ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null'
 alias ldapsearch='ldapsearch -o ldif-wrap=no'
 alias lds='ldapsearch -xZZ'
 alias ccze='ccze -A -o nolookups'
@@ -47,9 +48,10 @@ alias gitl='git log'
 alias gitlp='git log -p'
 alias gitla='git adog'
 alias gitlv='git adogv'
-alias gg='git grep'
+alias gg='git grep -i'
 alias g='grep -iE'
 alias gr='grep -RiE --exclude-dir=\.git'
+alias rg='rg -S --colors "line:fg:yellow" --colors "path:fg:green"'
 alias trea='tree -a -I ".git"'
 alias treea='trea'
 alias tree='tree -I ".git"'
diff --git a/profile/rda/.gitconfig b/profile/rda/.gitconfig
index 8f1ada1..8a9f958 100644
--- a/profile/rda/.gitconfig
+++ b/profile/rda/.gitconfig
@@ -119,4 +119,4 @@
     adogd = !"git adogb --date=format:'%Y-%m-%d %H:%M:%S' --format=format:'%C(#d7ff5f)%h%C(reset)%C(auto)%d%C(reset) %C(normal)%s%C(reset) %C(#5fd7ff)%an%C(reset) %C(#d7d7ff)(%ad)%C(reset)'"
     adogj = !"git adogv"
     adog = !"git adogv"
-    adogg = !"git adogv --grep"
+    adogg = !"git adogv -i --grep"
diff --git a/profile/rda/envrcd.d/20-aliases b/profile/rda/envrcd.d/20-aliases
index 1789ec1..a24662d 100644
--- a/profile/rda/envrcd.d/20-aliases
+++ b/profile/rda/envrcd.d/20-aliases
@@ -31,7 +31,7 @@ alias lsa='ls -AF'
 alias llt='ls -hlFtr'
 alias lat='ls -hlAFtr'
 alias s='ssh'
-alias snk='ssh -o StrictHostKeyChecking=no'
+alias snk='ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null'
 alias slapcat='slapcat -o ldif-wrap=no'
 alias ldapsearch='ldapsearch -o ldif-wrap=no'
 alias ldapimodify='ldapmodify -Y EXTERNAL -H ldapi://'
@@ -59,9 +59,10 @@ alias gitl='git log'
 alias gitlp='git log -p'
 alias gitla='git adog'
 alias gitlv='git adogv'
-alias gg='git grep'
+alias gg='git grep -i'
 alias g='grep -iE'
 alias gr='grep -RiE --exclude-dir=\.git'
+alias rg='rg -S --colors "line:fg:yellow" --colors "path:fg:green"'
 alias trea='tree -a -I ".git"'
 alias treea='trea'
 alias tree='tree -I ".git"'
-- 
GitLab