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
# git-dotfiles: simple git alias for dotfiles management | |
# 1. configure dotfiles checkout location ... | |
git config --global --replace-all dotfiles.dir "$HOME/.dotfiles" | |
# 2. init dotfiles ... | |
git init --bare "$(git config --global dotfiles.dir)" | |
# 3. create git dotfiles alias ... | |
git config --global --replace-all alias.dotfiles '!git --git-dir="$(git config --global dotfiles.dir)" --work-tree="$HOME"' | |
# 4. (OPTIONAL) | |
echo \* >> $HOME/.gitignore |