Skip to content

Commit 7056735

Browse files
committed
feat: exclude dirs from grep alias
Signed-off-by: David Calvert <david@0xdc.me>
1 parent ada9f17 commit 7056735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ alias vi="vim -b"
3333
alias vim="vim -b"
3434
alias ls="ls --color=auto"
3535
alias ll="ls -hails --color=auto"
36-
alias grep="grep --color=auto --binary-files=without-match --devices=skip"
36+
alias grep="grep --color=auto --binary-files=without-match --devices=skip --exclude-dir={.git,.svn,.terraform}"
3737
alias tree="tree -C --dirsfirst"
3838
alias wan="dig +short myip.opendns.com @resolver1.opendns.com"
3939

0 commit comments

Comments
 (0)