11 lines
238 B
Bash
Executable file
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" "$@"
|