Hacker News new | ask | show | jobs
by amne 666 days ago
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
2 comments

I have similar in a backup directory on my NAS. Works pretty well in general for getting my home directory up and good.

WSL, I usually have to make a few adjustments, mostly so that I can use the git credential manager installed in windows from Linux git.

Similar set up with a dotfile repo then I use GNU Stow to manage my dotfiles once I clone the repo.