zsh:alias: Exclude .git & tags when grepping

Those are more or less never a place that I want to include when
grepping recursively or through a glob.
This commit is contained in:
2022-06-27 23:18:20 +02:00
parent a8f6973968
commit 7b40b3ea98

View File

@@ -29,7 +29,7 @@ fi
# Default flags
(( ! $+functions[ls-show-hidden] )) ||
alias ls='ls-show-hidden --color=auto --group-directories-first -p -v'
add_flags grep --color
add_flags grep --color=auto --exclude-dir=.git --exclude=tags
add_flags cp -i
add_flags mv -i
add_flags rm -I