Re: psql command line editing

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql command line editing
Date: 2025-02-12 18:55:04
Message-ID: CANzqJaCHXvZRC6xJbxg80DoWNmm-ohFP+u=VqpsXd6wtqXXpmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 12, 2025 at 1:50 PM Rich Shepard <rshepard(at)appl-ecosys(dot)com>
wrote:

> My web searches suggest that using the psql command line I'm limited to
> moving the cursor one character at a time. Is there a way to use a small
> editor, e.g., joe on linux, to move by words or to the begining and end of
> the line?

The PGDG prebuilt packages are built with libreadline. Thus, if that's how
you installed psql, Home, End, Ctrl-Left, Ctrl-Right and Ctrl-w should work.

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2025-02-12 18:56:52 Re: psql command line editing
Previous Message Rich Shepard 2025-02-12 18:50:37 psql command line editing