utilities/git-etc
2013-07-22 23:01:45 +02:00

11 lines
234 B
Bash
Executable file

#!/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/ "$@"