summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/.local/bin/update-repos7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/.local/bin/update-repos b/bin/.local/bin/update-repos
new file mode 100755
index 0000000..cfa5810
--- /dev/null
+++ b/bin/.local/bin/update-repos
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+## run this in a directory full of git repos (i usually keep them in ~)
+for dir in *
+do
+ cd "$dir" && git pull | sed s/Already/"$dir"\ is\ already/; cd ..
+done