Hacker News new | ask | show | jobs
by pyrophane 1258 days ago
I do something similar, albeit a bit more bare-bones. I keep my dotfiles in a dotfiles folder that is a git repo and then just have a simple script to symlink everything.

I have a couple of submodules in there (zplug, pyenv) and a bash script to keep them up to date, and then a few self managed binaries, like fnm. That's about it.

I don't bother trying to manage anything outside of home or deal with secret values by using something like git-secret.

Overall, it works great and has allowed me to keep track of how my core tools are configured without too much hassle.

4 comments

Stow (https://www.gnu.org/software/stow/) may be useful for the linking part
Related:

Using GNU Stow to manage your dotfiles (2022) https://news.ycombinator.com/item?id=32253018

Chezmoi[1] has been working well for me recently, replacing a set of Stow-able directories in a simple Git repo.

I haven't started using templates and things, for now it's just environment variables.

[1]: https://chezmoi.io

This is exactly my setup. Add onto this a simple install script and you have an easy way to quickly provision (is that the right word?) a new laptop.

Mine uses Homebrew to install my favorite binaries and also runs a zsh script to configure macOS defaults how I like it.

I use Homeshick for this, which also allows me to have multiple repos: https://github.com/andsens/homeshick