How to restore .bash_profile on a mac? None of my unix terminal are working [closed]

While this is offtopic for stackoverflow, it’s also pretty simple to fix:

  1. Start Terminal.app.
  2. Reset $PATH:

    $ export PATH=/bin:/usr/bin:/usr/local/bin
    
  3. Fix ~/.bash_profile:

    $ vi ~/.bash_profile
    

Or you can avoid setting $PATH at all with:

$ /usr/bin/vi ~/.bash_profile

Leave a Comment