1
0
镜像自地址 https://github.com/quitesimpleorg/hs9001.git 已同步 2025-03-14 04:03:31 +01:00
Albert S 79a26e2aa1 databaseLocation(): Consider env variable override
Allow overriding databaseLocation by an environment variable.

Closes: #1
2021-03-21 10:38:12 +01:00
2021-03-20 20:18:27 +01:00
2021-03-20 20:18:27 +01:00
2021-03-20 20:18:27 +01:00
2021-03-20 20:42:35 +01:00

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.

仓库描述
Bash history put into sqlite so it can be searched
自述文档 ISC 91 KiB
编程语言
Go 99.7%
Makefile 0.3%