12 lines
238 B
Text
12 lines
238 B
Text
|
#!/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" "$@"
|