From d7e6aec0ed3bc22af199bbb4c69a22fd607b691b Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 5 Jul 2017 10:08:50 +0200 Subject: [PATCH] psql: make PROMPT2 easily distinguishable from PROMPT1 --- psql/psqlrc.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/psql/psqlrc.in b/psql/psqlrc.in index bdf8e13..ad37eac 100644 --- a/psql/psqlrc.in +++ b/psql/psqlrc.in @@ -46,7 +46,9 @@ -- Add transaction status (%x) to prompt. \set PROMPT1 '%x%/%R%# ' -\set PROMPT2 :PROMPT1 +-- Remove database from second prompt to make it easily distinguishable from +-- PROMPT1. +\set PROMPT2 '%x%R%# ' -- But display the normal psql welcome message. \set QUIET off -- 2.45.2