Created
April 18, 2021 20:15
-
-
Save nikibobi/6f1e11e2ac1c7d823957d0aee4070481 to your computer and use it in GitHub Desktop.
Bootstrap my dotfiles on a new device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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