Accidentally deleted all the dot files in my home directory.... Help?!
As the title says, I accidentally removed all the dot files. The vast majority of them were installed by default or when installing a package - luckily, my custom files were backed up.
Is there any way I can get back to the "default set", if you like? Reinstall all packages?
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 8562bp
7 comments
The simplest solution would be to create a new user and copy the dot files to your account. If you know what you are looking for, you can find the default configs in /etc/skeleton
Just had that idea myself as well, thanks!
You shouldn't need to do anything, just launch the programs as usual and they'll generate the dotfiles if they are missing. You might however need to use xdg-user-dirs to set up directories.
Deleted before we saved it.
Pro tip for the next time: use dotfiles (https://wiki.archlinux.org/index.php/Dotfiles) or something similar. These are software utilities that backup your dotfiles using git. That way you can also view and revert the changes you've made.
Out of curiosity, how did you manage to do this?
Went to backup my whole home directory, didn't remember to copy hidden files as well. New filesystem on source, copied files back, voila, no dot files