about summary refs log tree commit diff
path: root/postgres/.psqlrc
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:51:54 +0300
commit38bab29776950ac2364ed64195b89887717c33de (patch)
treeedaaf366a55dbe96d268019124536bc504c64e87 /postgres/.psqlrc
chore: init HEAD master
Diffstat (limited to 'postgres/.psqlrc')
-rw-r--r--postgres/.psqlrc16
1 files changed, 16 insertions, 0 deletions
diff --git a/postgres/.psqlrc b/postgres/.psqlrc
new file mode 100644
index 0000000..6405f72
--- /dev/null
+++ b/postgres/.psqlrc
@@ -0,0 +1,16 @@
+\set QUIET 1
+\pset null '[NULL]'
+
+\set PROMPT1 '%[%033[1m%]%M %n@%/%R%[%033[0m%]% λ '
+\set PROMPT2 '    … > '
+
+\timing
+
+\x auto
+
+\set HISTCONTROL ignoredups
+\set HISTFILE ~/.local/var/lib/psql_history_ :DBNAME
+
+\set VERBOSITY verbose
+
+\unset QUIET

Consider giving Nix/NixOS a try! <3