3 ms·
For dotfiles I use the workflow from this comment https://news.ycombinator.com/item?id=11071754 https://news.ycombinator.com/item?id=11071754 with a keybase enc
by drexlspivey 7y ago
For dotfiles I use the workflow from this comment https://news.ycombinator.com/item?id=11071754 https://news.ycombinator.com/item?id=11071754 with a keybase encrypted repo
<quote>
I use:
git init --bare $HOME/.myconf
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
config config status.showUntrackedFiles no
where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like:
config status
config add .vimrc
config commit -m "Add vimrc"
config add .config/redshift.conf
config commit -m "Add redshift config"
config push
And so one…
No extra tooling, no symlinks, files are tracked on a version control system, you can use different branches for different computers, you can replicate you configuration easily on new installation.
</quote>
- j88439h84 7y agoLooks good, thanks.
- TopHatCroat 7y agoThis is a pretty great approach, I agree. My version does not offer you a way to easily use multiple repositories. I will probably have to use this approach at some point as my config continues growing.
- GlennS 7y agoI do this as well for the moment, but I find it slightly annoying, because it doesn't play nicely with Magit or zsh autocomplete.