What do y'all use to manage/backup your dotfiles? Why'd ya pick it?
I've been meaning to set something up, but I keep falling into choice-paralysis and putting it off.
Leading contenders include:
YADM (bash) https://thelocehiliosan.github.io/yadm/
dot (rust) https://github.com/ubnt-intrepid/dot
GNU Stow (perl) https://www.gnu.org/software/stow/
doing it manually with shell aliases: https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
chezmoi: (go) https://github.com/twpayne/chezmoi
Currently leaning towards chezmoi (because most features) or YADM (because pure bash)
^^^ cc @kungtotte —your recent toot about YADM was what reminded me that I really ought to get this set up.
@codesections I looked through the list on the Arch wiki when I was deciding, and the reasons I listed in my other toot were the main ones. I want my files to stay in their proper place and still be managed, and I don't want to track all of my ~
YADM solves those easily. Its main downside is it doesn't let you track files outside of ~. It does have a bootstrap feature that you might be able to abuse with symlinking things from /etc to files in ~
Hmm, when you say it doesn't track files outside of ~, do you mean "just in the ~ dir itself" or "~ and it's subdirectories"? (I.e., can it still track files in `~/.config` ?
@codesections oh yeah, it tracks anything inside /home/user/ and below, but it can't track things in /etc for example.
@codesections another neat feature (AFAIK chezmoi does this too) is per system/user/whatever files. I run Void on my desktop and Manjaro on my laptop for example, so I can have different dotfiles based on their hostnames in this case. YADM solves this by using files named e.g. .bashrc##%.hostname and then symlinking .bashrc->.bashrc##%.hostname
@codesections Just git with a script that copies my dotfiles into the local repository.
Regarding mutt, you can use variables in a separate file that start with my_.
set my_username = "..."
set my_password = "..."
This file could be gpg encrypted (or pass).Then, in your muttrc you would include it:
source "gpg -dq $HOME/path.gpg |"
And use the variables $my_username... in the muttrc.
@codesections I use stow, with all dotfiles in a git repo. I have also considered using the git --bare method.
Never thought about that. My entire $HOME is part of borgbackup.
@codesections stow + git. It's simple and ubiquitous.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.