Created
December 8, 2021 10:15
-
-
Save bdargan/581cd801594913c1421d82aee217e74a to your computer and use it in GitHub Desktop.
dot file init
This file contains hidden or 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
#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