mirror of
https://github.com/dvorka/hstr.git
synced 2025-02-24 14:57:35 +08:00
Minor polishing
This commit is contained in:
parent
49a8a9e9fc
commit
69b0500f87
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ https://github.com/dvorka/hstr/releases
|
||||||
INSTALLATION
|
INSTALLATION
|
||||||
------------
|
------------
|
||||||
* bind `hh` to a key and/or add it to $PATH
|
* 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:
|
* bind `hh` to a BASH key by adding a line to your `.bashrc`, e.g. Ctrl-R:
|
||||||
|
|
||||||
`bind '"\C-r": "\C-k\C-uhh\C-j"'`
|
`bind '"\C-r": "\C-k\C-uhh\C-j"'`
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ INSTALLATION
|
||||||
|
|
||||||
To determine the character sequence emitted by a pressed key in terminal,
|
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~`.
|
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
|
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:
|
the actual command. Check your current bindings using:
|
||||||
|
|
||||||
`bind -S`
|
`bind -S`
|
||||||
|
|
Loading…
Reference in a new issue