Thread: Changing the editor for the \e option

Changing the editor for the \e option

From
"G. Anthony Reina"
Date:
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?

Thanks.
-Tony Reina




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

From
"Brett W. McCoy"
Date:
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.



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

From
"John M. Flinchbaugh"
Date:
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?

just set the EDITOR environment variable to whatever editor you'd rather
use.

____________________}John Flinchbaugh{______________________
| -> glynis@hjsoft.com <-             john@cs.millersv.edu |
|    glynis@netrax.net      http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~



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

From
"G. Anthony Reina"
Date:
> Yes.  You use your shell's EDITOR variable.  I have mine set to pico.
>
> Brett W. McCoy
>

Thanks. That worked well.

-Tony