Thread: How do I change the default editor in psql
The default editor when i invoke "\e" in "psql" it is "vi". How can I replace the editor with something else? Thanks, Rafael.
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
Re: How do I change the default editor in psql
From
rafal.nospam@paputek.decsoft.com.pl (Rafal Slubowski)
Date:
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