Skip to content

Instantly share code, notes, and snippets.

@asahasrabuddhe
Created August 14, 2019 05:41
Show Gist options
  • Save asahasrabuddhe/1a1182aa6cb900bf7b20c3c3366bdce6 to your computer and use it in GitHub Desktop.
Save asahasrabuddhe/1a1182aa6cb900bf7b20c3c3366bdce6 to your computer and use it in GitHub Desktop.
Sync DOTFILES using Git
git init --bare $HOME/.configs
alias config='/usr/bin/git --git-dir=$HOME/.configs/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.configs/ --work-tree=$HOME'" >> $HOME/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment