Thread: Changing the editor for the \e option
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
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.
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~~
> Yes. You use your shell's EDITOR variable. I have mine set to pico. > > Brett W. McCoy > Thanks. That worked well. -Tony