Bash history put into sqlite so it can be searched
Go to file
lawl 5604c310d7 Pass DB into functions. Implement import feature 2021-03-20 20:47:05 +01:00
.gitignore Init+ minor improvements 2021-03-20 20:18:27 +01:00
README.md Update README.md 2021-03-20 20:42:35 +01:00
go.mod Init+ minor improvements 2021-03-20 20:18:27 +01:00
go.sum Init+ minor improvements 2021-03-20 20:18:27 +01:00
main.go Pass DB into functions. Implement import feature 2021-03-20 20:47:05 +01:00

README.md

hs9001

Setup

go build
#move hs9001 to a PATH location
# Initialize database
hs9001 init

Add this to .bashrc

if [ -n "$PS1" ] ; then
    PROMPT_COMMAND='hs9001 add "$(history 1)"'
fi

Usage

hs9001 search "term"

Is is recommended to create an aias for search to make life easier.