git clone --bare git@github.com:mactep/dotfiles.git $HOME/.dotfiles function dotfiles { git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@ } dotfiles checkout dotfiles config status.showUntrackedFiles no dotfiles config core.worktree $HOME # to help vim-fugitive work correctly echo "alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> ~/.bashrc