News for hackers. Stuff that matters.
Re:Ask HN: How do you share your personal setup over differe... by sandreas on Friday March 18, 2022 @01:37PM (#30725132)
I use a `.dotfiles` github repository with a `setup` or `setup.cmd`, depending if its windows or *nix and which host. Additionally, I keep my config files in `.dotfiles/etc` and the setup scripts softlink the files to the right locations in $HOME. Examples:

  - .dotfiles/etc/git/.gitconfig
  - .dotfiles/windows/setup.cmd
  - .dotfiles/linux/setup_ubuntu
  - .dotfiles/macos/setup
The setup script depends on the OS, using `scoop` for windows (https://pilabor.com/blog/2021/12/automate-windows-app-setup-...), `apt` / `dnf` / `pacman` for linux and `brew` for macOS.
Re:Ask HN: How do you share your personal setup over differe... by willmorrison on Friday March 18, 2022 @04:54PM (#30727399)
I used to have this same setup, but recently I switched to a bare git repo following the advice of this article: https://www.atlassian.com/git/tutorials/dotfiles

I think this is much better and you might consider it

Re:Ask HN: How do you share your personal setup over differe... by ZeroGravitas on Friday March 18, 2022 @05:23PM (#30727709)
I think the 'yadm' project is basically this but slightly more polished.

https://yadm.io/docs/getting_started#

Re:Ask HN: How do you share your personal setup over differe... by sandreas on Saturday March 19, 2022 @02:52PM (#30736566)
Yeah, there are many of these out there... also GNU stow (see https://alexpearce.me/2016/02/managing-dotfiles-with-stow/)

But I did not feel enough pain to switch to an extra utility yet. For now, `git` and `sh` are just enough...

Re:Ask HN: How do you share your personal setup over differe... by sandreas on Saturday March 19, 2022 @02:50PM (#30736544)
Mmh, I have to read this carefully, but after the first read it seems to be way more complex than my current solution...

Thanks anyway, maybe there is room for improvement.