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

11 lines
238 B
Bash
Executable file

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