hstr/README.md

50 lines
977 B
Markdown
Raw Normal View History

2013-12-03 06:47:51 +08:00
hstr
====
2013-12-03 06:55:33 +08:00
BASH History Suggest Box.
DESCRIPTION
-----------
A command line utility that brings improved BASH command completion
from the history. It aims to make completion easier to use and faster
than Ctrl-R.
DOWNLOAD
--------
2013-12-03 15:54:19 +08:00
https://github.com/dvorka/hstr/releases
2013-12-03 06:55:33 +08:00
INSTALLATION
------------
2013-12-04 05:42:51 +08:00
* bind `hh` to a key and/or add it to $PATH
* bind hh to a BASH key by adding a line to your `.bashrc`, e.g. Ctrl-R:
2013-12-03 06:58:34 +08:00
2013-12-04 05:42:51 +08:00
`bind '"\C-r": "\C-k\C-uhh\C-j"'`
2013-12-03 06:58:34 +08:00
2013-12-04 05:42:51 +08:00
or F12:
2013-12-03 06:58:34 +08:00
2013-12-04 05:42:51 +08:00
`bind '"\e[24~":"\C-k\C-uhh\C-j"'`
2013-12-03 06:58:34 +08:00
2013-12-04 05:42:51 +08:00
or Ctrl-F12:
2013-12-03 06:58:34 +08:00
2013-12-04 05:42:51 +08:00
`bind '"\e[24;5~":"\C-k\C-uhh\C-j"'`
2013-12-03 06:58:34 +08:00
2013-12-04 05:42:51 +08:00
To determine the character sequence emitted by a pressed key in terminal,
type CTRL-v and then press the key. For example, F12 gives `^[[24~`.
Replace the `^[` with \e. To clear the line first, add `\C-k \C-u` in front of
the actual command. Check your current bindings using:
2013-12-03 06:58:34 +08:00
2013-12-03 14:53:09 +08:00
`bind -S`
2013-12-03 06:55:33 +08:00
BUGS
----
2013-12-03 15:54:19 +08:00
https://github.com/dvorka/hstr/issues
2013-12-03 06:55:33 +08:00
AUTHOR
------
martin.dvorak@mindforger.com
- eof -