Recently, I tried to install ruby and I somewhat messed up with variable environment. As a result, I am not be able to use paths in .profile or any other path files that I set up before (I tried in .bash_profile, .zschr and etc). How can I fix this problem?
Asked
Active
Viewed 1.9k times
1 Answers
1
I can't help you recover your old path, but have a look here:
https://apple.stackexchange.com/questions/11745/reset-your-path-variable
A couple of different options are presented to resolve your pickle.
One of the answers suggests PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin is the default so that would be a safe place to start from
Journeyman Geek
- 129,178
.bash_profileand.zshrcto be effective sincebashandzshare different shells--and (unlikely) possibly neither is the one you're using. Can yousource/etc/profileand does that help? – Eric Renouf Nov 12 '16 at 15:52