From 74564eea4ee2c71e3aa4c9ace359da7f1744e195 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 16 Jun 2018 22:07:25 +0200 Subject: [PATCH] psql: use database-specific history file This way commands from different projects isn't mixed. --- misc/psql/psqlrc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.43.2