Index: zshrc ================================================================== --- zshrc +++ zshrc @@ -222,10 +222,19 @@ reset="$(tput sgr0)" fossil diff -N "$@" | sed "s/^+.*$/$green&$reset/" | sed "s/^-.*$/$red&$reset/" | less -FRX fi } + + flgrep() { + local ret=1 + fossil changes --all | sed 's/^.* //' | while read file; do + grep -H "$@" "$file" && ret=0 + [ $? -gt 1 ] && return $? + done + return $ret + } git2fl() { local gitdir=$(git rev-parse --show-toplevel)/.git local repo=$(fossil info | awk '/^repository:/ { print $2 }')