Z-Man Jones
Z-Man Jones

Reputation: 187

How to recover overwritten bash profile

I installed homebrew with brew install wget and when I opened my .bash_profile it was some file I had never seen before full of homebrew's things. My aliases are still working, but I was wondering where I could find them since they're not in the txt file anymore.

Upvotes: 0

Views: 430

Answers (2)

Wang Bucca
Wang Bucca

Reputation: 98

I am not familiar with OSX, but I guess your old bash settings could have been backed up somewhere, because your aliases are still working. Try searching for files/directories named "bash*".

Upvotes: 1

Kyle Birch
Kyle Birch

Reputation: 75

you should try using a file recovery program. it is possible the alias is referring to the location on the HDD and that the file still exists, even if the file with that name isn't accessible anymore.

a file recovery program may be a good option.

Upvotes: 1

Related Questions