From: Simon Ruderich Date: Wed, 5 Jul 2017 08:08:50 +0000 (+0200) Subject: psql: make PROMPT2 easily distinguishable from PROMPT1 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=d7e6aec0ed3bc22af199bbb4c69a22fd607b691b;p=config%2Fdotfiles.git psql: make PROMPT2 easily distinguishable from PROMPT1 --- 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