A Modular Approach to Storing Home Directory Config Files (Dotfiles) in Git using Bash, Zsh, or Powershell
In this article, I offer an approach for managing dotfiles in a modular fashion. I find a modular approach important because only some config files are useful in all contexts, while others are unique to a specific environment. For instance, my text editor configuration (.vimrc, in my case) is used on my Windows laptop, Linux laptop, FreeBSD server, and even my phone. On the other hand, files for configuring a Linux graphical environment, a developer’s Macbook, Windows Subsystem for Linux (WSL), or Windows Powershell, may not make sense to clutter or confuse environments to which they do not apply.