How do I change the default editor in psql

Started by anonymousabout 26 years ago3 messagesgeneral
Jump to latest
#1anonymous
xx@yy.zz

The default editor when i invoke "\e" in "psql" it is "vi". How can I
replace the
editor with something else?
Thanks,
Rafael.

#2Guido Goldstein
guido@gold.siebend.net
In reply to: anonymous (#1)
Re: How do I change the default editor in psql

Hi!

On Fri, 31 Mar 2000 15:20:29 GMT
"anonymous" <xx@yy.zz> wrote:

The default editor when i invoke "\e" in "psql" it is "vi". How can I
replace the
editor with something else?
Thanks,
Rafael.

You can set the EDITOR environment variable to the editor you want to
use (i.e. EDITOR=gnuclient).

Don�t forget to export this variable!

HIH
&
MfT
Guido
--
"Please remain calm...I may be mad, but I am a professional."
-- Mad Scientist

#3Noname
rafal.nospam@paputek.decsoft.com.pl
In reply to: anonymous (#1)
Re: How do I change the default editor in psql

On Fri, 31 Mar 2000 15:20:29 GMT, "anonymous" <xx@yy.zz> wrote:

The default editor when i invoke "\e" in "psql" it is "vi". How can I
replace the
editor with something else?
Thanks,
Rafael.

Maybe setting system variable EDITOR should help.
Try:

$ export EDITOR=pico

BTW, I'd rather learn vi ;-)

--
Rafal Slubowski \\
rafal@paputek.decsoft.com.pl /O `----.
www.slubek.w.pl * (_.-. )\
*|* rs //--// X