From 9f3136fba1e022b17a1293e0fc9bead012d49c80 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 2 Jun 2021 11:38:35 +0300 Subject: [PATCH] Exclude binaries and .git/.tags from grep --- zsh/.zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 7b61fe6..778759a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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() { -- 2.44.0