Re: [SQL] Changing the editor for the \e option

Brett W. McCoy <bmccoy@lan2wan.com>

From: "Brett W. McCoy" <bmccoy@lan2wan.com>
To: "G. Anthony Reina" <reina@nsi.edu>
Cc: "pgsql-sql@postgreSQL.org" <pgsql-sql@postgreSQL.org>
Date: 1999-04-23T01:03:22Z
Lists: pgsql-sql
On Thu, 22 Apr 1999, G. Anthony Reina wrote:

> Is there a way to change the editor that is used for psql when you use
> the \e (edit last command)? The current editor looks like Vi (which I
> hate). Is there a way to have psql use another?

Yes.  You use your shell's EDITOR variable.  I have mine set to pico.

Brett W. McCoy           
                                         http://www.lan2wan.com/~bmccoy
-----------------------------------------------------------------------
... and furthermore ... I don't like your trousers.