Web Hosting Talk







View Full Version : pico as default editor on raq4


scsi
07-07-2001, 10:09 AM
hi all,
can you tell me how to have pico as default editor with -w option turned on?
thank in advance

Madman2020
07-07-2001, 02:35 PM
I am not sure what you mean by default editor. Cobalts do not run Windows. You can use pico or vi. If you do not like to type pico -w when loading it you can create an alias in your .bashrc file for pico to load with that. I am not sure if pico as a config file like vi has .exrc.

qslack
07-07-2001, 02:54 PM
Add this to /etc/profile:

export EDITOR='pico -w'

scsi
07-07-2001, 03:10 PM
is it right?
export HOSTNAME USER PS1 PATH MAIL LOGNAME HISTSIZE INPUTRC EDITOR='pico -w'

have I to restart something and if so how?

thank you

qslack
07-07-2001, 03:30 PM
Put the export line I posted on a different line (just in case). You don't need to restart anything. The next time bash runs, it'll scan that file.

scsi
07-07-2001, 03:39 PM
thanx man, I've added on new line.
That's the last Q: How can I test it?

qslack
07-07-2001, 03:41 PM
You can test it by running any program which uses the $EDITOR enviroment variable. Lynx, most mail programs, and several other programs all use it. You can also just do this:

echo $EDITOR

Or to edit a file,

$EDITOR /etc/passwd

scsi
07-07-2001, 03:50 PM
Qslack you have been very preciousus and clear.
I've tried to test but it doesn't work.no matter I trust in instruction and hope next time editor will be callup pico will appear.
off topic here - do you have knowledgment about netsaint? if so we could start new topic, if not please to met you to the next

qslack
07-07-2001, 03:52 PM
Try this:
sh /etc/profile
echo $EDITOR

It should print out 'pico -w'.

I don't know anything about Netsaint, but I'm sure a lot of other people do...