5 ms·
I just do this. Easy https://www.atlassian.com/git/tutorials/dotfiles https://www.atlassian.com/git/tutorials/dotfiles
by josephd79 2y ago
I just do this. Easy
https://www.atlassian.com/git/tutorials/dotfiles https://www.atlassian.com/git/tutorials/dotfiles
- ok_dad 2y agoSame! Nothing better than git to store a bunch of text files!
- twp 2y agoHow do you handle differences between machines? How do you handle secrets? How do you run scripts?
- mixmastamyk 2y agoScripts check environment to see where they are. What secrets? I generally don’t copy them, but you could manually. For example I use the same ssh keypair on two machines, but I generally don’t.
- twp 2y agoIn my case, I have things like Github Personal Access Tokens stored in my password manager and then use chezmoi's templates to populate them in my dotfiles, for example: https://github.com/twpayne/dotfiles/blob/master/home/dot_zshrc.tmpl#L103 https://github.com/twpayne/dotfiles/blob/master/home/dot_zsh... This means that: 1. My secrets are safely stored in my password manager so I can share my dotfiles. 2. When I update the secret in my password manager it automatically gets updated in my dotfiles when I run `chezmoi apply`.
- mixmastamyk 2y agoHmm, I don’t keep any secrets in dot files and have never thought to. Seems simpler that way.
- mixmastamyk 2y agoTo clarify, .ssh/* are “dot files” and have a private key but I dont track them in the repo.
- ok_dad 2y agoI have one machine at any time I store them in Bitwarden not in dotfiles I… am not sure what that has to do with scripts?