summaryrefslogtreecommitdiffstats
path: root/git-etc
diff options
context:
space:
mode:
Diffstat (limited to 'git-etc')
-rwxr-xr-xgit-etc11
1 files changed, 11 insertions, 0 deletions
diff --git a/git-etc b/git-etc
new file mode 100755
index 0000000..d7ccdc2
--- /dev/null
+++ b/git-etc
@@ -0,0 +1,11 @@
+#!/usr/bin/zsh
+
+GITDIR=/home/slash/projects/etcfiles
+
+if [ ! -d "$GITDIR" ]; then
+ echo "Cloning etcfiles to $GITDIR"
+ git clone git@ryuslash.org:etcfiles.git "$GITDIR"
+fi
+
+cd /etc
+git --git-dir "$GITDIR" --work-tree /etc/ "$@"