Skip to content

Instantly share code, notes, and snippets.

@nicklozon
Last active August 29, 2015 13:55
Show Gist options
  • Save nicklozon/8777237 to your computer and use it in GitHub Desktop.
Save nicklozon/8777237 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Update all git repositories in the given directory
# Originally intended for pathogen bundle folder to update all vim extensions
# Cron job:
# 0 20 * * * ~/.vim/bundle/update_all.sh
cd ~/.vim/bundle
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c 'cd $0 && git pull' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment