My personal dotfiles - use at your own risk.
init new repo:
git init --bare $HOME/.dotfiles
alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config config status.showUntrackedFiles no
init new machine:
git clone --bare <git-repo-url> $HOME/.dotfiles
alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config checkout
- Create powershell file at
$PROFILE
with
function config { git --git-dir=$HOME\.dotfiles\ --work-tree=$HOME $args }
config checkout
config config status.showUntrackedFiles no
- Set environment variable
XDG_CONFIG_HOME
toC:\Users\{USER}\.config
(source).