Skip to content

Instantly share code, notes, and snippets.

@bdargan
Created December 8, 2021 10:15
Show Gist options
  • Save bdargan/581cd801594913c1421d82aee217e74a to your computer and use it in GitHub Desktop.
Save bdargan/581cd801594913c1421d82aee217e74a to your computer and use it in GitHub Desktop.
dot file init
#setup dotfiles using a git bare repo, as per https://news.ycombinator.com/item?id=11071754
git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment