This repository contains my file configurations for Windows+WSL2+Emacs desktop environment among other settings. Commands to replicate it are provided.
This workflow was provided by Siiwyn, which is a reference to this article and this discussion forum about how to set up, track and replicate your dotfiles among other devices. You must change the repository name and links to yours.
git init --bare $HOME/.dotfiles
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles remote add origin git@github.com:ygor-sena/.dotfiles.git
git clone --separate-git-dir=$HOME/dotfiles https://github.com/ygor-sena/.dotfiles.git
rsync --recursive --verbose --exclude '.git' .dotfiles-tmp/ $HOME/
rm --recursive .dotfiles-tmp
dotfiles config status.showUntrackedFiles no
dotfiles remote set-url origin git@github.com:ygor-sena/.dotfiles.git
dotfiles status
dotfiles add .gitconfig
dotfiles commit -m 'feat: add gitconfig'
dotfiles push
About Git bare repository:
- The best way to store your dotfiles: A bare Git repository **EXPLAINED** by Gabrielle Young
About WSL settings:
- How to enable systemd in WSL by Microsoft
- Sharing Windows fonts with WSL by x410.dev