From: Simon Ruderich Date: Sat, 16 Jun 2018 20:07:25 +0000 (+0200) Subject: psql: use database-specific history file X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=74564eea4ee2c71e3aa4c9ace359da7f1744e195;p=config%2Fdotfiles.git psql: use database-specific history file This way commands from different projects isn't mixed. --- diff --git a/misc/psql/psqlrc.in b/misc/psql/psqlrc.in index 23cc2d9..9b37a65 100644 --- a/misc/psql/psqlrc.in +++ b/misc/psql/psqlrc.in @@ -36,8 +36,8 @@ -- "ignorespace ignoredups" \set HISTCONTROL ignoreboth --- Set path to history file and increase it. -\set HISTFILE HISTFILE_PATH +-- Set path to history file (database specific) and increase it. +\set HISTFILE HISTFILE_PATH- :DBNAME \set HISTSIZE 100000 -- Add transaction status (%x) to prompt; show database name in bold green.