#!/usr/bin/env zsh for file in $(git ls-files '*Cargo.lock'); do (cd "$(dirname "$file")" && cargo update -wq) git add $file done