8 ms·
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 `.
by sandreas 5y ago
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-with-scoop/ https://pilabor.com/blog/2021/12/automate-windows-app-setup-...), `apt` / `dnf` / `pacman` for linux and `brew` for macOS.
- willmorrison 5y agoI 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 https://www.atlassian.com/git/tutorials/dotfiles I think this is much better and you might consider it
- ZeroGravitas 5y agoI think the 'yadm' project is basically this but slightly more polished. https://yadm.io/docs/getting_started# https://yadm.io/docs/getting_started#
- sandreas 5y agoYeah, there are many of these out there... also GNU stow (see https://alexpearce.me/2016/02/managing-dotfiles-with-stow/ 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...
- sandreas 5y agoMmh, 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.