Skip to content

Instantly share code, notes, and snippets.

@muffinresearch
Last active July 24, 2022 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muffinresearch/33c438482ed5c6008061c6725bfac4e5 to your computer and use it in GitHub Desktop.
Save muffinresearch/33c438482ed5c6008061c6725bfac4e5 to your computer and use it in GitHub Desktop.
Script to inititalize new dotfiles setup on new system.
# Based on https://www.atlassian.com/git/tutorials/dotfiles
git init --bare $HOME/.dotfiles
alias gd='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
gd config --local status.showUntrackedFiles no
echo "alias gd='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment