function gpr for dir in (find . -type d -name ".git") set repo (dirname $dir) set_color green echo "Updating $repo" set_color normal git -C $repo pull end end