mirror of
https://github.com/dvorka/hstr.git
synced 2025-01-14 19:07:57 +08:00
Polishing documentation shorcuts rendering.
This commit is contained in:
parent
03641fe037
commit
0ad945d245
3 changed files with 10 additions and 10 deletions
|
@ -38,31 +38,31 @@ bind -S
|
|||
|
||||
|
||||
## BASH EMACS KEYMAP (DEFAULT)
|
||||
Bind `hh` to a Bash key e.g. to `Ctrl-r`:
|
||||
Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>:
|
||||
```bash
|
||||
bind '"\C-r": "\C-ahh \C-j"'
|
||||
```
|
||||
or `Ctrl-Alt-r`:
|
||||
or <kbd>Ctrl-Alt-r</kbd>:
|
||||
```bash
|
||||
bind '"\e\C-r":"\C-ahh \C-j"'
|
||||
```
|
||||
or `Ctrl-F12`:
|
||||
or <kbd>Ctrl-F12</kbd>:
|
||||
```bash
|
||||
bind '"\e[24;5~":"\C-ahh \C-j"'
|
||||
```
|
||||
Bind `hh` to `Ctrl-r` only if it is interactive shell:
|
||||
Bind `hh` to <kbd>Ctrl-r</kbd> only if it is interactive shell:
|
||||
```bash
|
||||
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi
|
||||
```
|
||||
|
||||
## BASH VI KEYMAP
|
||||
Bind `hh` to a Bash key e.g. to `Ctrl-r`:
|
||||
Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>:
|
||||
```bash
|
||||
bind '"\C-r": "\C-ahh \C-j"'
|
||||
```
|
||||
|
||||
## ZSH EMACS KEYMAP (DEFAULT)
|
||||
Bind `hh` to a Zsh key e.g. to `Ctrl-r`:
|
||||
Bind `hh` to a Zsh key e.g. to <kbd>Ctrl-r</kbd>:
|
||||
```bash
|
||||
bindkey -s "\C-r" "\eqhh\n"
|
||||
```
|
||||
|
|
|
@ -33,7 +33,7 @@ Table of contents:
|
|||
|
||||
Features
|
||||
--------
|
||||
`hh` is typically started by pressing `Ctrl-r` after
|
||||
`hh` is typically started by pressing <kbd>Ctrl-r</kbd> after
|
||||
you configure it for this shorcut for your shell. However,
|
||||
you can run it as a normal program just by typing:
|
||||
```bash
|
||||
|
@ -80,10 +80,10 @@ Favorite Commands
|
|||
commands.
|
||||
|
||||
A new favorite command can be added from
|
||||
ranking or raw history view by pressing `Ctrl-f`.
|
||||
ranking or raw history view by pressing <kbd>Ctrl-f</kbd>.
|
||||
|
||||
You can check your favorite commands by choosing
|
||||
favorite view - rotate views using `Ctrl-/` or start
|
||||
favorite view - rotate views using <kbd>Ctrl-/</kbd> or start
|
||||
`hh` by adding `favorites` to `HH_CONFIG` environment
|
||||
property. A favorite command can be choosen just
|
||||
by pressing `ENTER` when on command in favorite view.
|
||||
|
|
|
@ -15,7 +15,7 @@ for a tool that is able to manage your **favorite** commands?
|
|||
|
||||
HSTR is a command line utility that brings improved Bash command completion
|
||||
from the history. It aims to make completion **easier** and more **efficient**
|
||||
than `Ctrl-r`.
|
||||
than <kbd>Ctrl-r</kbd>.
|
||||
|
||||
Apart to the completion, history can be **managed** (you can remove
|
||||
commands that e.g. contain sensitive information like
|
||||
|
|
Loading…
Reference in a new issue