Retrieve loaded bash profile after ~/.bash_profile deleted
bash, shell
Solution
alias > my_aliases
can give you some aliases back, but if you have hundreds, you probably want to use `comm(1)` to identify which ones are in another file.
Problem
I was working with a program and it deleted my .bash_profile, which I unfortunately haven't backed up for several months. I however, have one terminal open that I am not going to close which has the file loaded in. Is there any possible way I can "export" the loaded bash aliases etc from the current terminal?