| File man/hh.1 changed (mode: 100644) (index 859c698..7f77357) |
| 2 |
2 |
.SH NAME |
.SH NAME |
| 3 |
3 |
\fBhh\fR \- shell history suggest box |
\fBhh\fR \- shell history suggest box |
| 4 |
4 |
.SH SYNOPSIS |
.SH SYNOPSIS |
| 5 |
|
.B hh [OPTION] [ARG1] [ARG2]... |
|
|
5 |
|
.B hh [option] [arg1] [arg2]... |
| 6 |
6 |
.SH DESCRIPTION |
.SH DESCRIPTION |
| 7 |
7 |
.B hh |
.B hh |
| 8 |
8 |
uses shell history to provide suggest box like functionality |
uses shell history to provide suggest box like functionality |
| |
| ... |
... |
hh allows removal of commands from history - for instance with a typo or with a |
| 17 |
17 |
Show configuration to be added to .bashrc |
Show configuration to be added to .bashrc |
| 18 |
18 |
.SH COMMANDS |
.SH COMMANDS |
| 19 |
19 |
.TP |
.TP |
| 20 |
|
\fBpattern\fR |
|
|
20 |
|
\fBpattern\fR\eC\-u |
| 21 |
21 |
Type to filter shell history. |
Type to filter shell history. |
| 22 |
22 |
.TP |
.TP |
| 23 |
23 |
\fBCtrl\-i\fR |
\fBCtrl\-i\fR |
| |
| ... |
... |
export PROMPT_COMMAND="history \-a; history \-n; ${PROMPT_COMMAND}" |
| 46 |
46 |
bind '"\eC\-r": "\eC\-ahh \eC-j"' |
bind '"\eC\-r": "\eC\-ahh \eC-j"' |
| 47 |
47 |
.sp |
.sp |
| 48 |
48 |
.fi |
.fi |
|
49 |
|
The first command ensures that new history items are appended to .bash_history |
|
50 |
|
(instead of overwriting). The second command ensures synchronization of the |
|
51 |
|
history between memory and file system. The third command binds hh to |
|
52 |
|
Ctrl-r shortcut. |
| 49 |
53 |
.SH AUTHOR |
.SH AUTHOR |
| 50 |
54 |
Written by Martin Dvorak <martin.dvorak@mindforger.com> |
Written by Martin Dvorak <martin.dvorak@mindforger.com> |
| 51 |
55 |
.SH BUGS |
.SH BUGS |