From 09aedd869ed40adcafe1640c01ddf5252f666aa7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 5 Jul 2017 09:50:23 +0200 Subject: [PATCH] psql: add transaction status to prompt --- psql/psqlrc.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/psql/psqlrc.in b/psql/psqlrc.in index 8901fbf..8396dfd 100644 --- a/psql/psqlrc.in +++ b/psql/psqlrc.in @@ -39,5 +39,9 @@ \set HISTFILE HISTFILE_PATH \set HISTSIZE 100000 +-- Add transaction status (%x) to prompt. +\set PROMPT1 '%x%/%R%# ' +\set PROMPT2 :PROMPT1 + -- But display the normal psql welcome message. \set QUIET off -- 2.45.2