]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - misc/psql/psqlrc.in
psql: use database-specific history file
[config/dotfiles.git] / misc / psql / psqlrc.in
index 23cc2d94354312763ccfdcc74f5bd46929868c95..9b37a6576c9f1503430cc1324d37bcc4551ab799 100644 (file)
@@ -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.