Re: Setting the EDITOR environment variable for root
- From: "Germen" <mariano.obarrio@xxxxxxxxx>
- Date: 3 Aug 2006 10:41:05 -0700
Hi Mutts, to set root profile you need edit /.profile this is the root
profile... /etc/profile it's a common profile for all users.
try add this at end in /.profile
# vi /.profile
....
....
EDITOR=vi
export EDITOR
TERM=vt100
export TERM
if you use bash
export EDITOR=vi
export TERM=vt100
and then exit and relogin again...
SalU2,
Mariano
mutts ha escrito:
I am using Solaris 9 and am trying to set the EDITOR environment
variable for the root user (and for everyone else for that matter) so
that I can edit crontab files. Soalris defults to the horrible ed
editor (why?) and I would prefer to use vi.
I've seen people say to edit the /etc/profile file but I don't know
excatly what to add to make it work, and since this is a production
machine that we host for a College, I don't want to go off half-cocked
and break something.
Any help is appreciated.
Thanks
.
- Follow-Ups:
- Re: Setting the EDITOR environment variable for root
- From: Claus Dragon
- Re: Setting the EDITOR environment variable for root
- From: mutts
- Re: Setting the EDITOR environment variable for root
- References:
- Setting the EDITOR environment variable for root
- From: mutts
- Setting the EDITOR environment variable for root
- Prev by Date: Re: Executing strictly from tmpfs - poor NFS performance
- Next by Date: Re: Setting the EDITOR environment variable for root
- Previous by thread: Setting the EDITOR environment variable for root
- Next by thread: Re: Setting the EDITOR environment variable for root
- Index(es):