Okay, this is a last attempt to see if I can salvage something I accidentally did.
I accidentally did "command
> ~/.profile" instead of "command
>> ~/.profile" on my computer.
I didn't have it version controlled (never happening again), and since the .profile wasn't open in an editor at the time, I don't have an existing version in any backup file or Vim buffer.
The only thing I can possibly think of at this point is that I still have a terminal session open running the lines that were in the ~/.profile file prior to my mistake above. My question is: Is there any way to get the currently executed source?
Maybe to be more explicit and generic, if I run
source ~/.profile
Is there any way to see what got executed in that terminal session outside of looking at the file that was sourced?
Lesson learned though, version ALL your dotfiles.
Thanks in advance.
-Hassan