]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
psql: add, postgresql configuration file
[config/dotfiles.git] / setup.sh
index 43ad66f5e5d3255735bc4cbc16eeb861d06a6f2e..c04bc5269c1876527c829cd47f77125dc399bb66 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -44,6 +44,13 @@ if installed maxima; then
     link maxima ~/.maxima
 fi
 
+if installed psql; then
+    generate psql/psqlrc .in simple_cpp \
+        HISTFILE_PATH -- "`pwd`/psql/history"
+    sed_i 's/^#/--/' psql/psqlrc
+    link psql/psqlrc ~/.psqlrc
+fi
+
 # MySQL client.
 if installed mysql; then
     link mysql/my.cnf ~/.my.cnf