X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 18916D1B56B for ; Mon, 1 Sep 2003 18:51:51 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 66672-04 for ; Mon, 1 Sep 2003 15:51:21 -0300 (ADT) Received: from smtp102.mail.sc5.yahoo.com (smtp102.mail.sc5.yahoo.com [216.136.174.140]) by svr1.postgresql.org (Postfix) with SMTP id 9F3A8D1B8B3 for ; Mon, 1 Sep 2003 15:51:19 -0300 (ADT) Received: from pcp04100620pcs.neave01.pa.comcast.net (HELO yahoo.com) (renneyt@68.81.196.130 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Sep 2003 18:51:14 -0000 Message-ID: <3F539518.8060202@yahoo.com> Date: Mon, 01 Sep 2003 14:51:04 -0400 From: Renney Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030827 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: PostgreSQL Administrators Mailing List Subject: Re: Prompts in psql References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/6 X-Sequence-Number: 10094 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.