sqlite3
stores command history in .sqlite_history
, which is by default created in:
$HOME/.sqlite_history
How can I change this location to somewhere else?
This is possible for example with mysql
, where I can define environment variable
MYSQL_HISTFILE=/path/to/whatever/file
But I could not find any corresponding environment variable for sqlite3
export SQLITE_HISTFILE=/tmp/history
has no effect. I found a post where somebody asks same question, but no useful answers are given.