Skip to content

Instantly share code, notes, and snippets.

@theshortcut
Created January 5, 2010 18:36
Show Gist options
  • Save theshortcut/269584 to your computer and use it in GitHub Desktop.
Save theshortcut/269584 to your computer and use it in GitHub Desktop.
bash function to update vimbundles with hg or git
update-vimbundles() {
pushd ~/.vimbundles >/dev/null;
for filename in *; do
pushd $filename >/dev/null;
if [ -d .git ]; then
echo "git pull on $filename";
git pull;
echo ""
elif [ -d .hg ]; then
echo "hg pull on $filename";
hg pull
echo ""
fi
popd >/dev/null;
done;
popd >/dev/null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment