Gnu stow has finally been updated to fix a long standing issue so I can once again wholeheartedly recommend it again! It’s lightweight and uses symlinks. Last I checked, chezmoi has a symlink mode but it’s a bit worse.
Dotfiles: Unofficial Guide to Dotfiles on GitHub
21–30 of 74 posts
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#22Earlier quoted context omitted.
Using the GNU stow utility makes this super easy. It even has a --dotfiles flag so you can author your dotfiles as dot-zshrc and when the utility symlinks it, it will be .zshrc. Makes it nice so your source files are not hidden but the actual dotfiles are (as expected).
Although GNU stow is very interesting, I like this simple script because it has no external dependencies. Stow is not available on macos by default, for example.
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#23All you need is a symlink script that symlinks files in ~ to ~/path/to/your/dotfiles https://github.com/pprotas/dotfiles/blob/main/symlink.sh That's it.
I mean, yea, if it works for you, great! But all of the above are problems I did have. I grew a custom install script for years. Now I use Home Manager and the impermanence module.
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#24All you need is a symlink script that symlinks files in ~ to ~/path/to/your/dotfiles https://github.com/pprotas/dotfiles/blob/main/symlink.sh That's it.
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#25[1]: https://www.atlassian.com/git/tutorials/dotfiles [2]: https://gist.github.com/tionis/a0f23a7a33b0e289f1b03cc6ff503...
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#26This site seems much more like an some of the awesome- repositories on github than a guide. Although it does give some extra information on the packages. To not make it took negative. I personally use Chezmoi, which I've been super happy with. The ability to maintain files in a central repository and then pull them into the file system on an update is quite nice. You can handle merge conflicts and whatnot between you…
Seconding Chezmoi, it's what I use, and it works well.
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#27I 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
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#28All you need is a symlink script that symlinks files in ~ to ~/path/to/your/dotfiles https://github.com/pprotas/dotfiles/blob/main/symlink.sh That's it.
No need for those complex software, just shell script is enough for me.
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#29All you need is a symlink script that symlinks files in ~ to ~/path/to/your/dotfiles https://github.com/pprotas/dotfiles/blob/main/symlink.sh That's it.
This will not handle cases other targets than $HOME. The automatic deletion seems also very risky. In my own script, I move all pre-existing targets to a separate directory, so I can check later.
Re: Dotfiles: Unofficial Guide to Dotfiles on GitHub
#30I didn’t store my dotfiles on GitHub because they didn’t used to have free private repositories. (Why would I share my dotfiles?)