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