From 74d30f8610cf9441641c3e5ff448c9ee90417859 Mon Sep 17 00:00:00 2001
From: Chris Coley <chris@codingallnight.com>
Date: Wed, 6 Dec 2017 13:30:31 -0800
Subject: [PATCH] Updating the PSQL prompt in the psqlrc file

---
 psqlrc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/psqlrc b/psqlrc
index f9fdb9b..49e3d83 100644
--- a/psqlrc
+++ b/psqlrc
@@ -25,6 +25,10 @@
 -- Use horizontal/vertical column output based on content
 \x auto
 
+-- Set the prompt
+\set PROMPT1 '%[%033[1m%]%M %n@%/%R%[%033[0m%]%#%x '
+\set PROMPT2 '[more] %R%# '
+
 -- Useful aliases
 \set version 'SELECT version();'
 \set extensions 'SELECT * FROM pg_available_extensions;'
@@ -32,7 +36,7 @@
 
 \unset QUIET
 
-\echo '\nPSQL resource file loaded.'
+\echo 'PSQL resource file loaded.'
 \echo 'NULL is displayed as "ยค".'
 \echo 'Type :version to see the PostgreSQL version.'
 \echo 'Type :extensions to see the available extensions.\n'
-- 
GitLab