Results 1 to 2 of 2
  1. #1

    Member Since
    Oct 08, 2010
    Problem editing path

    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,


  2. #2

    Member Since
    Oct 08, 2010
    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'

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. "Use UNC path from Active Directory" not opening the entire path
    By jjw3579 in forum macOS - Operating System
    Replies: 1
    Last Post: 09-22-2011, 11:12 AM
  2. finder path problem
    By Romu in forum macOS - Operating System
    Replies: 1
    Last Post: 03-04-2008, 06:35 AM
  3. Problem with Quicktime Movie Editing
    By sarahtheviking in forum Movies and Video
    Replies: 1
    Last Post: 02-25-2008, 03:19 PM
  4. Editing the path
    By handnblndr in forum macOS - Development and Darwin
    Replies: 4
    Last Post: 12-12-2005, 11:24 AM
  5. XCode Include path problem
    By Jove in forum macOS - Development and Darwin
    Replies: 0
    Last Post: 03-18-2005, 09:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts