mirror of
https://github.com/dvorka/hstr.git
synced 2025-01-15 11:27:36 +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)
|
## 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
|
```bash
|
||||||
bind '"\C-r": "\C-ahh \C-j"'
|
bind '"\C-r": "\C-ahh \C-j"'
|
||||||
```
|
```
|
||||||
or `Ctrl-Alt-r`:
|
or <kbd>Ctrl-Alt-r</kbd>:
|
||||||
```bash
|
```bash
|
||||||
bind '"\e\C-r":"\C-ahh \C-j"'
|
bind '"\e\C-r":"\C-ahh \C-j"'
|
||||||
```
|
```
|
||||||
or `Ctrl-F12`:
|
or <kbd>Ctrl-F12</kbd>:
|
||||||
```bash
|
```bash
|
||||||
bind '"\e[24;5~":"\C-ahh \C-j"'
|
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
|
```bash
|
||||||
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi
|
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi
|
||||||
```
|
```
|
||||||
|
|
||||||
## BASH VI KEYMAP
|
## 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
|
```bash
|
||||||
bind '"\C-r": "\C-ahh \C-j"'
|
bind '"\C-r": "\C-ahh \C-j"'
|
||||||
```
|
```
|
||||||
|
|
||||||
## ZSH EMACS KEYMAP (DEFAULT)
|
## 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
|
```bash
|
||||||
bindkey -s "\C-r" "\eqhh\n"
|
bindkey -s "\C-r" "\eqhh\n"
|
||||||
```
|
```
|
||||||
|
|
|
@ -33,7 +33,7 @@ Table of contents:
|
||||||
|
|
||||||
Features
|
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 configure it for this shorcut for your shell. However,
|
||||||
you can run it as a normal program just by typing:
|
you can run it as a normal program just by typing:
|
||||||
```bash
|
```bash
|
||||||
|
@ -80,10 +80,10 @@ Favorite Commands
|
||||||
commands.
|
commands.
|
||||||
|
|
||||||
A new favorite command can be added from
|
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
|
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
|
`hh` by adding `favorites` to `HH_CONFIG` environment
|
||||||
property. A favorite command can be choosen just
|
property. A favorite command can be choosen just
|
||||||
by pressing `ENTER` when on command in favorite view.
|
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
|
HSTR is a command line utility that brings improved Bash command completion
|
||||||
from the history. It aims to make completion **easier** and more **efficient**
|
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
|
Apart to the completion, history can be **managed** (you can remove
|
||||||
commands that e.g. contain sensitive information like
|
commands that e.g. contain sensitive information like
|
||||||
|
|
Loading…
Reference in a new issue