dotfile, how to manage and sync with Git + GNU Stow

Satyasheel
5 min readApr 11, 2021
credit: https://bit.ly/3d4vBgP

Disclaimer: This post is not about how to create dotfiles and what should be included in those dotfiles. I am expecting readers of this post to have their own basic/well-defined dotfiles. This post will be mainly focusing on how to manage your existing dotfiles like a pro!

Let’s start with a scenario where I have faced endless problems when I installed a new os on my desktop or got a new system from the office.

So, one day I got excited by reading one of a blog post on how to create your own dotfiles collection. Immediately after reading the post, I started collecting and adding different functionality to my dotfiles. This phase of creation was a bit time-consuming as I was searching different people's dotfiles and getting inspired from their cool dotfiles. After hours of inspiration and my own creation, I managed to create my own dotfiles. With excitement, I copied all my relevant dotfile into a directory and pushed it to a git repo. And one day I desktop crashed and I had to do a fresh installation of Linux os. After installation since I have a repo created for my dotfiles, I cloned the repo and then manually copied them to relevant locations. All good till now but the problem arises when you add new things to your dotfile, you add/change things to your dotfile and to make it available in the git repo you copy the files manually…

--

--

Responses (1)