aboutsummaryrefslogtreecommitdiff
path: root/.psqlrc
diff options
context:
space:
mode:
Diffstat (limited to '.psqlrc')
-rw-r--r--.psqlrc15
1 files changed, 15 insertions, 0 deletions
diff --git a/.psqlrc b/.psqlrc
new file mode 100644
index 0000000..7425862
--- /dev/null
+++ b/.psqlrc
@@ -0,0 +1,15 @@
+-- Set the prompt
+\set PROMPT1 '%[%033[35m%]%M:%>%[%033[0m%]/%[%033[32m%]%n%[%033[0m%]@%[%033[34m%]%/%[%033[0m%] %x%R%# '
+\set PROMPT2 '%[%033[35m%]%M:%>%[%033[0m%]/%[%033[32m%]%n%[%033[0m%]@%[%033[34m%]%/%[%033[0m%] %x%R%# '
+
+-- Set NULL character
+\pset null Ø
+
+-- Complete keywords in upper case
+\set COMP_KEYWORD_CASE upper
+
+-- Show query times
+\timing on
+
+-- Use extended display by default
+\x auto