diff --git a/man/hh.1 b/man/hh.1 index 859c698..7f77357 100644 --- a/man/hh.1 +++ b/man/hh.1 @@ -2,7 +2,7 @@ .SH NAME \fBhh\fR \- shell history suggest box .SH SYNOPSIS -.B hh [OPTION] [ARG1] [ARG2]... +.B hh [option] [arg1] [arg2]... .SH DESCRIPTION .B hh uses shell history to provide suggest box like functionality @@ -17,7 +17,7 @@ hh allows removal of commands from history - for instance with a typo or with a Show configuration to be added to .bashrc .SH COMMANDS .TP -\fBpattern\fR +\fBpattern\fR\eC\-u Type to filter shell history. .TP \fBCtrl\-i\fR @@ -46,6 +46,10 @@ export PROMPT_COMMAND="history \-a; history \-n; ${PROMPT_COMMAND}" bind '"\eC\-r": "\eC\-ahh \eC-j"' .sp .fi +The first command ensures that new history items are appended to .bash_history +(instead of overwriting). The second command ensures synchronization of the +history between memory and file system. The third command binds hh to +Ctrl-r shortcut. .SH AUTHOR Written by Martin Dvorak .SH BUGS