summaryrefslogtreecommitdiffstats
path: root/git-etc
blob: d7ccdc216b54c2e907e7723953911dc957dc93b1 (plain)
1
2
3
4
5
6
7
8
9
10
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/ "$@"