New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Problem editing path


Post Reply New Thread Subscribe

 
Thread Tools
charvey1

 
Member Since: Oct 08, 2010
Posts: 2
charvey1 is on a distinguished road

charvey1 is offline
Hello,

A few months back I added a directory to my PATH. I now need to remove that directory from the PATH because there's a program in there with a name that clashes with something else I'm trying to use.

This should be really easy. I've looks in all the standard places:
1) ~/.profile
2) ~/.bash_profile
3) ~/.bash_rc
4) /etc/paths
And some others too I found by looking around on google. I found my original addition to the PATH in ~/.bash_profile, which I removed. However, every time I open a new terminal, the PATH variable still contains the directory I'm trying to remove.

I'm using Snow Leopard and bash. I've shut down terminal completely and rebooted the machine. All I can think is that somewhere there is another profile find adding the directory to the path.

Does anyone have any ideas how I can remove this directory from my path?

Thanks very much for any help,

Chris
QUOTE Thanks
charvey1

 
Member Since: Oct 08, 2010
Posts: 2
charvey1 is on a distinguished road

charvey1 is offline
After many hours, I eventually worked this out. I'll post my solution in case someone else experiences the same problem. I could not find this anywhere on Google.

In ~/.MacOSX/ there is a file environment.plist . It contains all the path directories not defined in /etc/profile ~/.bash_profile ~/.bash_login and ~/.profile . Delete it and restart.

I was unaware that it was possible to set the path this way.

I'm 100% sure I didn't set it this way originally, so I'm wondering if some software many have done it 'on my behalf'
QUOTE Thanks

Post Reply New Thread Subscribe


« Lost my safari bookmarks by doing iphone sync | Wrong time stamp in downloaded attachments »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Strange iweb problem Anyuta Web Design and Hosting 0 09-27-2010 12:46 PM
2009 MBP - Possible Trackpad Problem tricky10 Apple Notebooks 6 09-09-2010 07:01 AM
iPhone onscreen volume control problem smuggerific iOS and Apps 1 04-19-2010 10:18 AM
Imac early 2006 core duo graphics card problem; mircomandrillo Apple Desktops 0 12-03-2009 04:03 AM
finder path problem Romu OS X - Operating System 1 03-04-2008 06:35 AM

All times are GMT -4. The time now is 04:07 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?