From: | Rich Shepard <rshepard(at)appl-ecosys(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | External psql editor |
Date: | 2022-04-29 15:55:37 |
Message-ID: | edf1cfa4-35bf-66bf-4de2-7a3bbcb6c5e4@appl-ecosys.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I do all my postgres work using the psql shell. Editing a command reguires
moving character-by-character and I'd like to use my small text editor (joe)
because it allows more control over line movement.
A web search found a stackexchange thread that suggested adding to
~/.bash_profile the line:
export PSQL_EDITOR=/usr/bin/joe
so I did this yesterday.
Today I've learned that the keyboard chords I use in joe in other
applications aren't working here. For example, C-w should delete the word to
the right of the point (cursor location). It doesn't. Instead, it deletes
from the cursor postion to the head of the line. C-x doesn't move the cursor
one word to the right, but cancels the command.
Is there a way for me to specify use of joe at the psql command line? (I'd
use emacs but that's gross overkill.)
Regards,
Rich
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2022-04-29 16:42:44 | Re: External psql editor |
Previous Message | Ron | 2022-04-29 15:47:41 | Re: About postgresql-db Directory |