1
1
Fork 0

Only apply flgrep to current directory & children

This commit is contained in:
Jonathan Schleifer 2020-08-15 15:52:57 +00:00
parent 02797af27b
commit f60631992d

2
zshrc
View file

@ -227,7 +227,7 @@ if which fossil &>/dev/null; then
flgrep() { flgrep() {
local ret=1 local ret=1
fossil changes --all | sed 's/^.* //' | while read file; do fossil changes --all . | sed 's/^.* //' | while read file; do
grep -H "$@" "$file" && ret=0 grep -H "$@" "$file" && ret=0
[ $? -gt 1 ] && return $? [ $? -gt 1 ] && return $?
done done