Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2004 19:51:15 +1030
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        Charles Swiger <cswiger@mac.com>, fbsd_user@a1poweruser.com
Cc:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@freebsd.org>
Subject:   Re: set env editor global
Message-ID:  <200401131951.15394.malcolm.kay@internode.on.net>
In-Reply-To: <410963BE-452F-11D8-A7A0-003065ABFD92@mac.com>
References:  <MIEPLLIBMLEEABPDBIEGCEAKFEAA.fbsd_user@a1poweruser.com> <410963BE-452F-11D8-A7A0-003065ABFD92@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 13 Jan 2004 05:13, Charles Swiger wrote:
> On Jan 12, 2004, at 10:37 AM, fbsd_user wrote:
> > On an new install with only an root account, I want to set the
> > command line prompt prefix and the default editor for all new users
> > and also the root account.
> >
> > What file do I put the 'set env' commands in to make this happen
> > globally?
>
> Look at /etc/profile and /etc/csh.cshrc.
>
> [ Note that root has /bin/sh as it's shell, whereas normal users will
> be using csh by default.  This matters because different shells have
> different syntax and config file locations. ]

I believe your note is somewhat out of date. 4.x at least as far back as
4.1 has had /bin/csh (actually statically linked tcsh) as the default she=
ll=20
for root. (But you possibly still end up with sh if you boot into single=20
user mode.)

I don't know about 5.x, but would be a little surprised if the default ha=
s
reverted to sh.

Malcolm Kay=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401131951.15394.malcolm.kay>