4 ms·
I highly recommend using symlinks to synchronize dotfiles with a locally cloned repo. That way, you can make changes to the dotfiles sitting in your home direct
by oacgnol 14y ago
I highly recommend using symlinks to synchronize dotfiles with a locally cloned repo. That way, you can make changes to the dotfiles sitting in your home directory and it'll be reflected in your repo should you want to commit those changes.
- mise 14y agoWait, I've done it the other way around. I have a repo directory, and I created symlinks in ~/ pointing to the dotfiles in the repo. I have a simple install script to symlink the files. Would you suggest having the physical files in ~/ and adding their symlinks to a repo?
- ichilton 14y agoI would think he meant what you said.... symlinks in the repo doesn't sound a good idea.
- uggedal 14y agoI just track ~/ directly and add appropriate .gitignore entries to those files which are ephemeral or not part of my local configuration: https://github.com/uggedal/dotfiles/blob/master/.gitignore https://github.com/uggedal/dotfiles/blob/master/.gitignore