Mac OS neXt also provides for a file:

$HOME/.MacOSX/environment.plist. .If it's not present you can create it and its hidden directory. Contents are environment variables that you would like defined even if you haven't opened a Terminal.app session. AppleScript's do shell script command, for instance will not run your startup scripts for your chosen shell.

In environment.plist you can define

PERL5LIB   as   /opt/local/lib/perl5/site_perl/5.8.8

without adding whatever else was in $PERL5LIB. The result is independent of your choice of shell. Apple has published a note on it somewhere. Concatenations to existing environment variables will not work.

Watch out for some errant scripts in /etc/ that once overwrote $PATH when it was redefined in environment.plist.
--

--> From the U S of A, the only socialist country that refuses to admit it. <--

Reply via email to