From: Sergey Matveev Date: Wed, 2 Jun 2021 08:38:35 +0000 (+0300) Subject: Exclude binaries and .git/.tags from grep X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=9f3136fba1e022b17a1293e0fc9bead012d49c80 Exclude binaries and .git/.tags from grep --- 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() {