Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: