How do I restore my .bash_profile?
Solution 1:
If your terminal window is still open, you can save the current environment settings to rebuild. The recovered file will contain more information than you may have defined yourself, so remove the parts you don't need:
Defined vars and functions:
$ declare > .bash_profile.recovered
Aliases:
$ alias >> .bash_profile.recovered
Solution 2:
There is a backup located at:
/etc/skel/.bash_profile
Just copy it over your current file.
Solution 3:
Search for dot_files in Google or Github if you like a sample one.
If you like to restore it, you could try to get it from your TimeMachine backup (if present)