1
0
镜像自地址 https://github.com/quitesimpleorg/hs9001.git 已同步 2025-04-04 11:46:01 +02:00

Update README.md

这个提交包含在:
Albert S. 2021-09-25 13:40:34 +02:00
父节点 6d4e7a96dc
当前提交 d0e07640e8

查看文件

@ -20,12 +20,13 @@ hs -cwd .
Lists all commands ever entered in this directory Lists all commands ever entered in this directory
``` ```
hs -after yesterday -cwd . git hs -today -cwd . git
``` ```
Lists all git commands in the current directory which have been entered today. Lists all git commands in the current directory which have been entered today.
Also, it (by default) replaces bash's built-in CTRL-R mechanism, so hs9001's database will be used instead Also, it (by default) replaces bash's built-in CTRL-R mechanism, so hs9001's database will be used instead of bash's limited history files.
of bash's limited history files.
When in reverse-search mode, you can only search the history of the current directory by pressing CTRL+A and then "w".
## Install ## Install
@ -51,9 +52,6 @@ apk add hs9001
go build go build
#move hs9001 to a PATH location #move hs9001 to a PATH location
``` ```
## Setup / Config
Add this to .bashrc Add this to .bashrc
``` ```
@ -62,8 +60,7 @@ eval "$(hs9001 bash-enable)"
This will also create a `hs`alias so you have to type less in everyday usage. This will also create a `hs`alias so you have to type less in everyday usage.
By default, every system user gets his own database. You can override this by setting the environment variable By default, every system user gets his own database. You can override this by setting the environment variable for all users that should write to your unified database.
for all users that should write to your unified database.
``` ```
export HS9001_DB_PATH="/home/db/history.sqlite" export HS9001_DB_PATH="/home/db/history.sqlite"
``` ```