Re: Prompts in psql - Mailing list pgsql-admin

From Sam Barnett-Cormack
Subject Re: Prompts in psql
Date
Msg-id Pine.LNX.4.50.0309021040550.30231-100000@short.lancs.ac.uk
Whole thread Raw
In response to Re: Prompts in psql  (Renney Thomas <renneyt@yahoo.com>)
Responses Re: Prompts in psql  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-admin
On Mon, 1 Sep 2003, Renney Thomas wrote:

> 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.

I've just looked in the manpage - does anyone know where psql looks for
a system-wide psqlrc?

--

Sam Barnett-Cormack
Software Developer                           |  Student of Physics & Maths
UK Mirror Service (http://www.mirror.ac.uk)  |  Lancaster University

pgsql-admin by date:

Previous
From: Renney Thomas
Date:
Subject: Re: language "plpgsql" does not exist
Next
From: Mark
Date:
Subject: oids