]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Exclude binaries and .git/.tags from grep
authorSergey Matveev <stargrave@stargrave.org>
Wed, 2 Jun 2021 08:38:35 +0000 (11:38 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 2 Jun 2021 08:38:35 +0000 (11:38 +0300)
zsh/.zshrc

index 7b61fe6c5fd7106b4965490d3777bbb0c5bb692c..778759a9695789328f15cd2cebb14178e412dae2 100644 (file)
@@ -137,6 +137,9 @@ GREP_ARGS=(
     --with-filename
     --line-number
     --dereference-recursive
+    --binary-files=without-match
+    --exclude-dir=.git
+    --exclude-dir=.tags
 )
 LESS_COLOURED=(less --RAW-CONTROL-CHARS)
 g() {