about summary refs log tree commit diff
path: root/postgres
diff options
context:
space:
mode:
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