How do I change the default editor in psql

Поиск
Список
Период
Сортировка
Искать

How do I change the default editor in psql

От:
"anonymous" <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.


Re: How do I change the default editor in psql

От:
Guido Goldstein <guido@gold.siebend.net>
Дата:

Hi!

On Fri, 31 Mar 2000 15:20:29 GMT
  "anonymous"  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

От:
rafal.nospam@paputek.decsoft.com.pl (Rafal Slubowski)
Дата:
On Fri, 31 Mar 2000 15:20:29 GMT, "anonymous"  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
FAQ