From 029b1c8ff81a28fdb2abb101daa8e7f63193abd4 Mon Sep 17 00:00:00 2001 From: GMadorell Date: Thu, 11 Nov 2021 13:42:34 +0100 Subject: [PATCH] Update sbt errors summary. Add search_in_content_two_independent_words. --- sbt/1.0/plugins/plugins.sbt | 2 +- zshrc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sbt/1.0/plugins/plugins.sbt b/sbt/1.0/plugins/plugins.sbt index 322f5d4..ff171f8 100644 --- a/sbt/1.0/plugins/plugins.sbt +++ b/sbt/1.0/plugins/plugins.sbt @@ -1,4 +1,4 @@ -addSbtPlugin("org.duhemm" % "sbt-errors-summary" % "0.6.0") +addSbtPlugin("com.github.duhemm" % "sbt-errors-summary" % "0.6.5") // addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1") addSbtPlugin("com.github.tkawachi" % "sbt-repeat" % "0.1.0") diff --git a/zshrc b/zshrc index 9304e4b..66bdc87 100644 --- a/zshrc +++ b/zshrc @@ -492,6 +492,8 @@ SEARCH HELP ej: fso email - fsc (file search inside contents): search inside file contents for a given string ej: fsc email +- fsc2 (file search inside contents 2 files): search for files which contain both inputs + ej: fsc2 email repository - fsg (file search globally by name) ej: fsg my.cnf @@ -522,6 +524,9 @@ alias fso=search_and_open function search_in_content() { rg $1 ; } alias fsc=search_in_content +function search_in_content_two_independent_words() { rg $1 -l -0 | xargs -0 rg $2 -l ; } +alias fsc2=search_in_content_two_independent_words + function find_by_name_globally() { if [ $# -eq 1 ]; then fd -HI "$1" / | fzf