From c51602795d8c791487337a610aee1cf2af9c34d4 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 5 Jul 2017 10:09:09 +0200 Subject: [PATCH] psql: color database name --- psql/psqlrc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psql/psqlrc.in b/psql/psqlrc.in index ad37eac..130215c 100644 --- a/psql/psqlrc.in +++ b/psql/psqlrc.in @@ -44,8 +44,8 @@ \set HISTFILE HISTFILE_PATH \set HISTSIZE 100000 --- Add transaction status (%x) to prompt. -\set PROMPT1 '%x%/%R%# ' +-- Add transaction status (%x) to prompt; show database name in bold green. +\set PROMPT1 '%x%[%033[01;32m%]%/%[%033[00m%]%R%# ' -- Remove database from second prompt to make it easily distinguishable from -- PROMPT1. \set PROMPT2 '%x%R%# ' -- 2.45.2