0

Hi guys I tried to add new directory to the PATH, but instead appending I overwrote it. Is there any way to restore those default paths?

user302581
  • 43
  • 1
  • 3
  • Please note that when asking questions like this, it's useful to describe what you *actually did*, so we don't have to guess. – Greg Hewgill Apr 10 '11 at 03:52

2 Answers2

2

If you changed your PATH in a Terminal shell, simply close that Terminal window and open a new one. Changes to environment variables are local to the shell in which you change them (and any subshells created by that one).

Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
1

Just restart your terminal that will assign variables based on your .profile or .bashrc ( if you are running bash )

zellio
  • 31,308
  • 1
  • 42
  • 61