Skip to content

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.

14 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
14 · 100% up
Kind
Text
ID
e0exct

9 comments

I store my dotfiles in a single dir and deploy them using GNU Stow. For quickly searching a specific file in my .dotfiles dir I use this bash function.

7 points

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.

5 points

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.

4 points

I store mine on GitHub and symlink it through a script , GitHub.com/simrat39/dotfiles

2 points

I store mine in a git repo, and have a script to symlink stuff to their place.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.