From: Renney Thomas <renneyt@yahoo.com>
Cc: PostgreSQL Administrators Mailing List <pgsql-admin@postgresql.org>
Subject: Re: Prompts in psql
Date: Mon, 01 Sep 2003 14:51:04 -0400
Message-ID: <3F539518.8060202@yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.50.0309011430190.12002-100000@short.lancs.ac.uk>
References: <Pine.LNX.4.50.0309011430190.12002-100000@short.lancs.ac.uk>
Sam Barnett-Cormack wrote:
>Is there any way to change the prompt in the psql CLI client? In the
>same way as one does with bash, or other shells.
>
>Ideally I want:
>
>username@host:database $
>
>as the prompt. Anyone got any ideas/references?
>
>
>
Put
\set PROMPT1 '%n@%m:%~%R%# '
in your .psqlrc file.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: renneyt@yahoo.com
Subject: Re: Prompts in psql
In-Reply-To: <3F539518.8060202@yahoo.com>
References: <Pine.LNX.4.50.0309011430190.12002-100000@short.lancs.ac.uk> <3F539518.8060202@yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox