# HG changeset patch # User Jeff Hammel # Date 1280728384 25200 # Node ID 7ddb611ba0c158f5f60e39d8b394f63599f3906a # Parent 4f49c0caa801270ac6875dc985ff605746bf8b54 add update all command diff -r 4f49c0caa801 -r 7ddb611ba0c1 .bashrc --- a/.bashrc Mon Jul 26 19:12:47 2010 -0700 +++ b/.bashrc Sun Aug 01 22:53:04 2010 -0700 @@ -41,7 +41,8 @@ export PYTHONPATH=~/python:$PYTHONPATH -# functions +### functions + cdwin() { # change directory to a window's location using its title DIR=$(xwininfo | dictify.py xwininfo | awk '{ print $NF }' | sed 's/"//g') @@ -259,6 +260,19 @@ grep '^+++ ' $@ | sed 's/+++ b\///' } +hg-update-all() { +for i in *; +do + if [ -e $i/.hg ] + then + cd $i + hg pull + hg update + cd - + fi +done +} + ### include overrides for commands source ~/.bash_overrides