Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
bash function to fetch the latest master on all submodules in parallel, wait until they're all updated, and then delete all pyc files
function delete-pyc() {
find . -name '*.pyc' -delete
function pull-latest-master() {
git checkout master; git pull &
git submodule foreach --recursive 'git checkout master; git pull &'
until [ -z "$(ps aux | grep '[g]it pull')" ]; do sleep 1; done
function update-code() {
Copy link

dannyroberts commented Feb 10, 2013

(I have these in my .bash_profile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment