From: Simon Ruderich Date: Wed, 5 Jul 2017 08:09:09 +0000 (+0200) Subject: psql: color database name X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=c51602795d8c791487337a610aee1cf2af9c34d4;p=config%2Fdotfiles.git psql: color database name --- 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%# '