I usually live in WSL2 on Windows running on company provided laptop. Each time the laptop has to be replaced (failure or age) I struggled to get my "home" back up so a couple of years ago I took a full day to setup my so-called "dot files repo".
My goal was to be able to install any debian-based distro and run a single script, non-interactive, that would get me up and running. All that I needed to do was to clone code I wanted to work on.
After I created the dot files repo the process was:
- install distro
- checkout dot files
- run script
- do I have everything I need? (minikube, k9s, jq, yq, asdf, terraform, git config, nvim config, etc.)
- if no, then:
- fix, commit, push
- remove distro