My dotfiles are powering a number of machines, and total I have been proud of them. They embrace hand-written shell scripts to create symlinks, obtain all desktop apps and CLI instruments, and get my most well-liked system settings in place. However total, they’ve develop into a Frankenstein over time as a result of many random scripts are doing random issues. And clearly, I did not doc what is going on on correctly.
Certain, scripts must run to put in stuff, however for config file administration, most options I’ve seen appeared too difficult to maintain some information in sync. And I actually do not need to use a dotfile framework to tug some configuration information.
What if there’s a technique to tweak Git and observe all of the
and config
information?
“Dotfiles administration” describes Git magic to trace all information someplace in your machine from a single
repository. Sure, your learn that proper. Any file and wherever.
alias dotfiles='git --git-dir=/house/mx/.dotfiles --work-tree=/'
That is proper; there is a
folder someplace in your machine (/house/mx/
within the instance), and it will observe all of the information regardless of the place they’re situated, because of the --work-tree
argument. Then there is no symlink dance!
With some further configuration, you may add and sync information throughout machines with out scripts utilizing dotfiles add
or dotfiles commit
. It is all simply plain Git.
This dotfiles method is by far the neatest I’ve seen, and I will undoubtedly give it a shot once I fiddle with my system config the subsequent time.