Asking for a friend.
Imagine that one has accidentally created a file named
~ and in the process of deleting it, foolishly types:
rm -rf ~
Luckily, I have active terminal windows open, so all is not entirely lost. I happened to have stopped this while it was deleting in the
~/. prefixed directories, too, so I somehow have all my work related content still as those directories didn't get hit with the
rm (lucky, I know).
Is there any way to recover from this? What files do I need to recreate while I still have valid terminal sessions?
I'm under the assumption that all my configuration (mostly in
~/. named folders/directories) is permanently gone. I've recovered some of my .bash_profile by looking at
typeset -f but I'm sure I'm missing parts of it.