xaizek / hstr (License: Apachev2) (since 2018-12-07)
Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history.
Commit c7420f6ce576cdeacc11ecc46cce7bbe43bda18a

Fixed #192 by adding parameter/arguments separator.
Author: dvorka
Author date (UTC): 2016-09-27 06:42
Committer name: GitHub
Committer date (UTC): 2016-09-27 06:42
Parent(s): 07fb25e2fb12a0094dfb9f8829fe4c803e81e6e5
Signing key:
Tree: 4678bf9a030491cf93e5e5d047ab1b66e3280224
File Lines added Lines deleted
CONFIGURATION.md 6 6
File CONFIGURATION.md changed (mode: 100644) (index 1c2be50..c4f5368)
... ... bind -S
41 41 ## BASH EMACS KEYMAP (DEFAULT) ## BASH EMACS KEYMAP (DEFAULT)
42 42 Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>: Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>:
43 43 ```bash ```bash
44 bind '"\C-r": "\C-ahh \C-j"'
44 bind '"\C-r": "\C-ahh -- \C-j"'
45 45 ``` ```
46 46 or <kbd>Ctrl-Alt-r</kbd>: or <kbd>Ctrl-Alt-r</kbd>:
47 47 ```bash ```bash
48 bind '"\e\C-r":"\C-ahh \C-j"'
48 bind '"\e\C-r":"\C-ahh -- \C-j"'
49 49 ``` ```
50 50 or <kbd>Ctrl-F12</kbd>: or <kbd>Ctrl-F12</kbd>:
51 51 ```bash ```bash
52 bind '"\e[24;5~":"\C-ahh \C-j"'
52 bind '"\e[24;5~":"\C-ahh -- \C-j"'
53 53 ``` ```
54 54 Bind `hh` to <kbd>Ctrl-r</kbd> only if it is interactive shell: Bind `hh` to <kbd>Ctrl-r</kbd> only if it is interactive shell:
55 55 ```bash ```bash
56 if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi
56 if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh -- \C-j"'; fi
57 57 ``` ```
58 58
59 59 ## BASH VI KEYMAP ## BASH VI KEYMAP
60 60 Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>: Bind `hh` to a Bash key e.g. to <kbd>Ctrl-r</kbd>:
61 61 ```bash ```bash
62 bind '"\C-r": "\C-ahh \C-j"'
62 bind '"\C-r": "\C-ahh -- \C-j"'
63 63 ``` ```
64 64
65 65 ## ZSH EMACS KEYMAP (DEFAULT) ## ZSH EMACS KEYMAP (DEFAULT)
66 66 Bind `hh` to a Zsh key e.g. to <kbd>Ctrl-r</kbd>: Bind `hh` to a Zsh key e.g. to <kbd>Ctrl-r</kbd>:
67 67 ```bash ```bash
68 bindkey -s "\C-r" "\eqhh\n"
68 bindkey -s "\C-r" "\eqhh --\n"
69 69 ``` ```
70 70
71 71
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/hstr

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/hstr

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master