3 ms·
zsh-histdb stores history inside a sqlite database instead of a simple text file. The good thing is that it includes context: current directory, session, date.
by GuB-42 7y ago
zsh-histdb stores history inside a sqlite database instead of a simple text file.
The good thing is that it includes context: current directory, session, date.
I use it together with ssh-suggestions which can use SQL queries to find the most relevant command. You can program rules such as: use the most frequent command in that session, if you none do it for the current directory in the last 6 months, if not, search globally.