Only apply flgrep to current directory & children
This commit is contained in:
parent
02797af27b
commit
f60631992d
1 changed files with 1 additions and 1 deletions
2
zshrc
2
zshrc
|
@ -227,7 +227,7 @@ if which fossil &>/dev/null; then
|
|||
|
||||
flgrep() {
|
||||
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
|
||||
[ $? -gt 1 ] && return $?
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue