History & search
psql+ keeps a searchable record of everything you've run, so the statement you need is never more than a few keystrokes away — even if you typed it last week against a different database.
Cross-session search
History persists across sessions and connections. Close the shell, reconnect to another database tomorrow, and your earlier statements are still there to recall.
Press Ctrl-R to start a reverse search, then type a fragment of the statement you're looking for:
(reverse-i-search)`join cust': SELECT o.id, c.name FROM orders o JOIN customers c ON …
As you type, the most recent match is shown. Keep pressing Ctrl-R to step back through older matches, then Enter to run it or → / End to edit it first. Ctrl-G cancels the search and restores your prompt.
You can also walk history line by line with the Up and Down arrows.
Where it's stored
History lives locally, in your Rillence config directory:
~/.config/rillence/psql_plus_history
It is plain, line-oriented, and yours. Nothing is uploaded — the history is local and private to your machine. Back it up, grep it, or inspect it like any other file:
grep -i 'create index' ~/.config/rillence/psql_plus_history
Limits and clearing
By default history is capped at a generous number of entries; the oldest are trimmed once the cap is reached. Both the size and the file location are configurable in ~/.config/rillence/config.toml:
[history]
enabled = true
max_size = 10000
path = "~/.config/rillence/psql_plus_history"
To wipe your history, delete the file:
rm ~/.config/rillence/psql_plus_history
To stop recording altogether — handy when typing credentials or other sensitive values — set enabled = false. You can also prefix a single statement with a leading space to keep that one line out of the history, just as you would in a Unix shell.