diff --git a/fish/functions/flgrep.fish b/fish/functions/flgrep.fish new file mode 100644 index 0000000..4c245a5 --- /dev/null +++ b/fish/functions/flgrep.fish @@ -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