Update README.md

This commit is contained in:
Albert S. 2021-09-25 13:40:34 +02:00
parent 6d4e7a96dc
commit d0e07640e8
1 changed files with 5 additions and 8 deletions

View File

@ -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"
``` ```