Add a pull_everything bash function.
author |
Steve Losh <steve@stevelosh.com> |
date |
Thu, 16 Jul 2009 03:10:34 -0400 |
parents |
aa40029d1619
|
children |
bb49bc7240a3
|
branches/tags |
(none) |
files |
.bashrc |
Changes
--- a/.bashrc Sat Jul 11 12:01:19 2009 -0400
+++ b/.bashrc Thu Jul 16 03:10:34 2009 -0400
@@ -27,6 +27,15 @@
source ~/lib/hg/bash_completion
source ~/lib/virtualenvwrapper_bashrc
+# Useful functions -----------------------------------------------------------
+
+pull_everything() {
+ for repo in $( ls -1 ); do
+ [ -d $repo ] && [ -d $repo/.hg ] && hg -R $repo pull
+ echo
+ done
+}
+
# Prompt stuff ---------------------------------------------------------------
D=$'\e[37;40m'