utilities/git-dot

12 lines
238 B
Text
Raw Normal View History

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