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