diff --git a/zshrc b/zshrc index baa5ad9..8542f37 100644 --- a/zshrc +++ b/zshrc @@ -225,6 +225,15 @@ if which fossil &>/dev/null; then 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 }')