Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the Darwin/Unix Equivalent of the DOS Path Statement?



On Mon, 21 May 2001, Cliff Savage wrote:

> What file do I edit to add things to the path?

Your path setting is an environment variable PATH. It can be set in your
shell's startup script. Different shells have different syntax for setting
environment variables. For details about startup scripts and environment
variables, read the manual page for your shell.

For example, my .profile has:
PATH=/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/usr/pkg/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/pkg/sbin
(Ignore the pkg directories.)

> What file do I edit to assign pico as my default editor instead of vi?

Default editor for what?

Usually, you can set the EDITOR environment variable; for example:
EDITOR=/usr/local/bin/pico

Jeremy C. Reed

BSD Resources -- http://bsd.reedmedia.net/


References: 
 >What is the Darwin/Unix Equivalent of the DOS Path Statement? (From: "Cliff Savage" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.