Repo to keep my dotfiles in sync. Repo made based on this comment.
git init --bare $HOME/.myconf
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
config config status.showUntrackedFiles noand adding files with
config add <filepath> sh -c "$(wget -O - https://raw.githubusercontent.com/balamurali27/dotfiles/master/.config/homesetup.sh)"Clone the repo with
git clone --separate-git-dir=$HOME/.myconf https://github.com/balamurali27/dotfiles $HOME/myconf-tmp
git --git-dir=$HOME/.myconf --work-tree=$HOME config --local core.worktree $HOME #for vim fugitivecopy the necessary dotfiles to home directory, then
rm -rf ~/myconf-tmp/
config config status.showUntrackedFiles no # needs zshrc to be copied and sourcedThen use the alias config to work with the repo