about summary refs log tree commit diff
path: root/postgres
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
chore: init HEAD master
Diffstat (limited to 'postgres')
-rw-r--r--postgres/.psqlrc16
-rwxr-xr-xpostgres/@install7
2 files changed, 23 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
diff --git a/postgres/@install b/postgres/@install
new file mode 100755
index 0000000..dce00ea
--- /dev/null
+++ b/postgres/@install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    postgres

Consider giving Nix/NixOS a try! <3