Add tiny helper to help sync dotfiles
authorJulien Valroff <julien@kirya.net>
Sun, 20 Oct 2013 16:09:45 +0000 (18:09 +0200)
committerJulien Valroff <julien@kirya.net>
Sun, 20 Oct 2013 16:09:45 +0000 (18:09 +0200)
update-dotfiles [new file with mode: 0755]

diff --git a/update-dotfiles b/update-dotfiles
new file mode 100755 (executable)
index 0000000..847448b
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+dotfiles_location="$HOME/.dotfiles"
+
+for i in $(ls "$dotfiles_location"); do
+    echo -n "Updating $i: "
+    cd "$dotfiles_location"/"$i"
+    git pull
+done