Windows dotfiles managed using a bare git repository. No extra tooling or symlinks required.
The PowerShell profile requires the following modules to be installed:
Clone as a bare repository:
git clone --bare https://github.com/pawelbialaszczyk/dotfiles.git $HOME/.dotfiles
Checkout to restore working tree files:
git --git-dir=$HOME/.dotfiles --work-tree=$HOME checkout
Configure the repository to include the git config:
git --git-dir=$HOME/.dotfiles --work-tree=$HOME config --local include.path ../.dotfilesconfig
Restart PowerShell and from now on use the dotfiles
command as an alias for git while working with dotfiles.
In case PowerShell doesn't recognize the dotfiles
command, you need to dot source the profile script in your profile file:
echo '. "$HOME\Documents\PowerShell\Profile.ps1"' > $PROFILE