News for hackers. Stuff that matters.
Re:Dotfiles feel too intimate and personal to share by cipehr on Wednesday August 06, 2025 @10:45AM (#44812739)
I feel similarly. For me it’s less about my unique customizations and more about this paranoia of there being something remotely sensitive in my ssh configs or something… the idea of hostnames, ips, domains, etc “leaking” worries me.

I use chezmoi to manage my dotfiles, if anyone has any advice on how to handle these worries I am all ears. I would love to share mine, even to just be able to point coworkers at my config.

Re:Dotfiles feel too intimate and personal to share by phailhaus on Wednesday August 06, 2025 @10:47AM (#44812757)
I get around that by sourcing a separate file in my config that I don't make public. Those are my company-specific settings.
Re:Dotfiles feel too intimate and personal to share by twp on Wednesday August 06, 2025 @01:52PM (#44815323)
chezmoi includes secret scanning from https://gitleaks.io/ by default to catch when you accidentally add a file with a secret in it. To be even more confident, you should add gitleaks as a git hook to your repo however.
Re:Dotfiles feel too intimate and personal to share by sureglymop on Wednesday August 06, 2025 @06:35PM (#44818647)
How do you automatically set up the hooks, e.g. when you clone the repo on a new computer?

Also, is there a way to automatically edit a chezmoi managed file in the chezmoi directory? I accidentally type stuff like "nvim .bashrc" way too often and then forget I never added the changes to chezmoi. It would be neat if there was a vim plugin or something that just opened the chezmoi file instead if it's managed.

Re:Dotfiles feel too intimate and personal to share by twp on Saturday August 09, 2025 @06:44PM (#44851050)
Please can you open an issue or discussion for these questions on https://github.com/twpayne/chezmoi - this way more people will both be able to help and more people will see the answer.
Re:Dotfiles feel too intimate and personal to share by sureglymop on Monday August 11, 2025 @06:55AM (#44862832)
I will do that. I apologize for raising it here in the first place and thank you for creating and maintaining a great piece of software!
Re:Dotfiles feel too intimate and personal to share by LeGrosDadai on Wednesday August 06, 2025 @02:21PM (#44815699)
In chezmoi you can use gpg encryption: https://www.chezmoi.io/user-guide/encryption/