Keeping a tidy dotfiles
After cleaning things up, the whole thing runs noticeably faster. Writing a tiny test first made the problem obvious. Naming things clearly helped more than any clever trick. Plain text keeps winning for small personal projects.
There is probably a better way, but this one is easy to remember. It is worth writing down the commands you only need twice a year. I keep relearning this, which is exactly why it goes here.
Next time I will start with the boring solution and see if it is enough. Measuring before changing anything saved me from a pointless rewrite. I ran into this again last week, so here is a short note for future me.