1

I was installing opencv Python on my Macbook pro el capitan and in setting up the path messed up my .bashrc or path etc. I tried several of the suggestions on the SO and SU, to no luck, now i am scared of messing up even more, (sorry am a mac newbie)

Sans-MBP:~ San$ echo $PATH
//anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Could someone help me with restoring the $PATH variable back? Thanks in advance

Edit: I did open my .bashrc in nano and this is what it shows

# added by Anaconda 2.2.0 installer
export PATH="//anaconda/bin:$PATH"

Now i am not sure what it should be to restore it. That's where I need help.

0

Just remove the export PATH=foo line from your .bashrc/.bash_profile. Then you just quit and reopen the terminal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.