• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: X PATH variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X PATH variable


  • Subject: Re: X PATH variable
  • From: Joel Hacker <email@hidden>
  • Date: Wed, 15 Jan 2003 17:55:44 -0500

It's true that by default there is no /etc/csh.login, but if you create one then Terminal reads it. Anything there may be overridden by anything in ~/.cshrc, but for that user only. As for modifying environment variables without redefining, that's easy. For example: to add /thisDir and /thisDir/thisSubDir to the beginning of your path without redefining the whole thing you would add

set path = ( /thisDir /thisDir/thisSubDir $path )

to your ~/.cshrc. This would, of course, alter the path for you alone and would not affect anything in the defaults nor would it require nearly as much typing as redefining the entire path. If you wanted those directories in everyones path, you would add that line to /etc/csh.login, creating a new one if necessary.

BTW, Martin's wrapper script is working great so far. Xterm in X11 has the fink directories in it's path but Terminal.app doesn't. Have updated some Fink packages in Xterm, run the Gimp and AbiWord, and thus far no probs. Brilliant idea Martin, thanks!


On Wednesday, January 15, 2003, at 05:04 PM, Justin Walker wrote:

On Wednesday, Jan 15, 2003, at 13:21 US/Pacific, Doug McNutt wrote:

At 20:09 +0100 1/15/03, Martin Costabel wrote:
There is the ~/.MacOSX/environment.plist that can be used, but it will give the same environment variables to *all* applications which can pose problems.

Not quite. Terminal, when executed in login mode executes /etc/.login which overlays whatever $PATH you have set up in the .plist.

I don't think Terminal reads that file (in fact, I don't think there is such a file). I believe that the shell that Terminal invokes for each window will read its own startup files, as specified in the individual man pages.


If Terminal does read the .plist and sets up PATH, you can (I think) modify the PATH variable instead of redefining it, to avoid losing the effect of the .plist. That may require changing some system-wide startup files, of course.

Regards,

Justin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: X PATH variable
      • From: Doug McNutt <email@hidden>
    • Re: X PATH variable
      • From: Eugene Lee <email@hidden>
References: 
 >Re: X PATH variable (From: Justin Walker <email@hidden>)

  • Prev by Date: Re: Firewall rule for X11 usage
  • Next by Date: Re: X PATH variable
  • Previous by thread: Re: X PATH variable
  • Next by thread: Re: X PATH variable
  • Index(es):
    • Date
    • Thread