From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>
Cc: PostgreSQL Administrators Mailing List <pgsql-admin@postgresql.org>
Subject: Re: Prompts in psql
Date: Mon, 1 Sep 2003 12:53:08 -0400 (EDT)
Message-ID: <200309011653.h81Gr8A16655@candle.pha.pa.us> (raw)
In-Reply-To: <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?
Sure, see the psql manual page.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
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: pgman@candle.pha.pa.us, s.barnett-cormack@lancaster.ac.uk
Subject: Re: Prompts in psql
In-Reply-To: <200309011653.h81Gr8A16655@candle.pha.pa.us>
References: <Pine.LNX.4.50.0309011430190.12002-100000@short.lancs.ac.uk> <200309011653.h81Gr8A16655@candle.pha.pa.us>
* 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