Skip to content

Instantly share code, notes, and snippets.

@nikibobi
Created April 18, 2021 20:15
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 nikibobi/6f1e11e2ac1c7d823957d0aee4070481 to your computer and use it in GitHub Desktop.
Save nikibobi/6f1e11e2ac1c7d823957d0aee4070481 to your computer and use it in GitHub Desktop.
Bootstrap my dotfiles on a new device
#!/bin/bash
mkdir $HOME/dot/
git clone --bare --branch ${1:-master} https://github.com/nikibobi/dotfiles.git $HOME/dot/
alias dot='/usr/bin/git --git-dir=$HOME/dot/ --work-tree=$HOME'
dot config --local status.showUntrackedFiles no
rm $HOME/.bashrc $HOME/.bash_profile
dot checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment