Any tips for managing hidden config files in home dir?
Wasn't sure if everybody just let's all these hidden files build up or if there is an easy way to organize it. It's kinda getting out of hand and I really like to keep my files more organized than this.
About this post
- Posted
- Archived
- Score
- 14 · 100% up
- Kind
- Text
- ID
- e0exct
9 comments
You will get many results if you search " dotfiles"
Thanks I try to always look stuff up but I was missing that key word I think.
I store my dotfiles in a single dir and deploy them using
GNU Stow. For quickly searching a specific file in my.dotfilesdir I use this bash function.There are many tools out there to help you manage dot files between multiple computers and keep them in sync.
As for organising them locally, unfortunately you have limited options. Your best bet is to check to see if the programs that are writing them supports the newer XDG base directory structure. Some applications have started to optionally support these paths and if they do you could move some of the configs from your home dir into ~/.config or ~/.local.
Others support changing where they write files via environment variables, you can add these to your profile to reconfigure where they store their files and ideally move them to be in line with the XDG standards.
While other commands are hard coded to look specifically for ~/application and there is not much you can do about that - you can create symlinks but this does not get rid of it from your home directory. For these applications all you can really do it raise an issue with the author to consider supporting the XDG standard and waiting.
But with all of these you need to go through each application one by one and figure out which of the above they support. Which is a tedious process.
In a nutshell: I store my (hidden) config files in a folder and create a symlink to location where the application expects it. And I use git as a repository.
I store mine on GitHub and symlink it through a script , GitHub.com/simrat39/dotfiles
I store mine in a git repo, and have a script to symlink stuff to their place.
Use yadm. It's on the aur https://aur.archlinux.org/packages/yadm/
I have been using dotdrop (https://github.com/deadc0de6/dotdrop) and git. Works very well for all my systems.