3 ms·
I started managing my dotfiles in git and followed the pattern I found in Anders Knudsen's repository below. The most painful thing has been coming up with con
by low_key 2y ago
I started managing my dotfiles in git and followed the pattern I found in Anders Knudsen's repository below. The most painful thing has been coming up with config that works across Linux and MacOS, but that's been chosen pain that can easily be avoided.
https://github.com/andersix/dotfiles https://github.com/andersix/dotfiles
- hk1337 2y agoI have been keeping them in separate branches because I have had macOS with intel and arm because there were differences in the config.
- josephd79 2y agoyup, a bare repo. its the easiest way I think.
- asix66 2y agoThis method, using a bare git repo, is really an elegant, efficient, and easy way to manage one's dotfiles. In the end, how you do it is personal pref. I liken it to editor wars, vim vs emacs, etc. What works for me, may not work for you. PS: these are my dotfiles (link is my repo), and I've used this method for some 5 plus yrs now and it works well for me. I really like how easy it is to spool up a new linux instance and have my config ready to go in mere seconds. I've not used branches yet, for different OS'en, so my zshrc and bashrc have conditional checks for OS. I will be looking at using branches in the future since it does sound like it would make shell rc files cleaner.