Bash – How to retrieve lost aliases

aliasbashbashrccommand line

I made an echo command to my .bash_aliases file and erased all of my aliases, except the test alias. However, I still have a session open that has the aliases loaded (into the tcl?). Can I retrieve them from this session?

Best Answer

You can almost definitely just do:

alias >>./bash_aliases
Related Question