And with it all my class paths, env vars and aliases. Is this something that can be recovered?
migrated from stackoverflow.com Jan 14 '11 at 13:56
This question came from our site for professional and enthusiast programmers.
On a Side note. Using .profile is not the best option. Using .bash_profile or .bashrc is much better for you in the long run.
Place this in .bash_profile or .bashrc and place your exports, functions and aliases in the following.
Place this function which Backs up .bash* files in you .bash_functions and all you have to do us run backup_bashfile in the terminal and there we go.
Using Time Machine is a great solution yet get you bashes in the right place and back them up, they will be with you for a long time.