3 ms·
Track you ~/.config (or whatever your XDG_CONFIG_HOME is) directory in git, and create symlinks for those programs that don't look there, optionally by script.
by blueflow 4y ago
Track you ~/.config (or whatever your XDG_CONFIG_HOME is) directory in git, and create symlinks for those programs that don't look there, optionally by script. Many programs already use that directory to store their configs. The Arch Linux folks are nagging every upstream into supporting it[1]. Also it requires no extra dependency aside git.
I think i say this everytime a dotfiles manager comes up.
[1] https://wiki.archlinux.org/title/XDG_Base_Directory https://wiki.archlinux.org/title/XDG_Base_Directory
- hiq 4y agoThis sounds like a good idea, I'd save all the `ln` commands the install.sh of my dotfiles repo. But do you just .gitignore all stuff in your .config you're not interested in?
- blueflow 4y agoI used to have some ignored, but nowadays i live with the files showing up as untracked.
- lambdaba 4y agoI take the opposite approach in that I keep the default config file locations and have .gitignore set to "*", and just force-add files as needed. Also have GIT_DIR and GIT_WORK_TREE=$HOME