I had to do the exact thing for my .bash_profile, as I accidentally had deleted it (with tons of customizations) and I didn't have quick access to my backups, but I did had the deleted .bash_profile loaded into memory in some open terminal sessions.
Fortunately, you can just write:
declare
to get all your aliases, functions, etc from the current shell session.
Fortunately, you can just write:
to get all your aliases, functions, etc from the current shell session.