utilities/git-etc

12 lines
234 B
Text
Raw Normal View History

2013-07-22 23:01:45 +02:00
#!/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/ "$@"