Add flgrep.fish
This commit is contained in:
parent
428a8eaf62
commit
bdfce892e4
1 changed files with 8 additions and 0 deletions
8
fish/functions/flgrep.fish
Normal file
8
fish/functions/flgrep.fish
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
function flgrep
|
||||||
|
set -l ret
|
||||||
|
fossil changes --all . | sed 's/^.* //' | while read file
|
||||||
|
grep -H $argv "$file" && set ret 0
|
||||||
|
test $status -gt 1 && return $status
|
||||||
|
end
|
||||||
|
return $ret
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue