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 3000453f73f4a841d2bbc209d6e67d219108f7e2

Fixed #192 by adding parameter/arguments separator.
Author: dvorka
Author date (UTC): 2016-09-27 06:44
Committer name: GitHub
Committer date (UTC): 2016-09-27 06:44
Parent(s): c7420f6ce576cdeacc11ecc46cce7bbe43bda18a
Signing key:
Tree: 7d5e49ce10e3d5478a8275be26a78385df40e81f
File Lines added Lines deleted
src/hstr.c 3 1
File src/hstr.c changed (mode: 100644) (index 1c27c91..3d50a69)
... ... static const char *INSTALL_BASH_STRING=
178 178 "\nexport HISTSIZE=${HISTFILESIZE} # increase history size (default is 500)" "\nexport HISTSIZE=${HISTFILESIZE} # increase history size (default is 500)"
179 179 "\nexport PROMPT_COMMAND=\"history -a; history -n; ${PROMPT_COMMAND}\" # mem/file sync" "\nexport PROMPT_COMMAND=\"history -a; history -n; ${PROMPT_COMMAND}\" # mem/file sync"
180 180 "\n# if this is interactive shell, then bind hh to Ctrl-r (for Vi mode check doc)" "\n# if this is interactive shell, then bind hh to Ctrl-r (for Vi mode check doc)"
181 "\nif [[ $- =~ .*i.* ]]; then bind '\"\\C-r\": \"\\C-a hh \\C-j\"'; fi"
181 "\nif [[ $- =~ .*i.* ]]; then bind '\"\\C-r\": \"\\C-a hh -- \\C-j\"'; fi"
182 182 "\n\n"; "\n\n";
183 183
184 184 static const char *INSTALL_ZSH_STRING= static const char *INSTALL_ZSH_STRING=
 
... ... static const char *INSTALL_ZSH_STRING=
186 186 "\nexport HISTFILE=~/.zsh_history # ensure history file visibility" "\nexport HISTFILE=~/.zsh_history # ensure history file visibility"
187 187 "\nexport HH_CONFIG=hicolor # get more colors" "\nexport HH_CONFIG=hicolor # get more colors"
188 188 "\nbindkey -s \"\\C-r\" \"\\eqhh\\n\" # bind hh to Ctrl-r (for Vi mode check doc)" "\nbindkey -s \"\\C-r\" \"\\eqhh\\n\" # bind hh to Ctrl-r (for Vi mode check doc)"
189 // TODO try variant with arg/pars separation
190 //"\nbindkey -s \"\\C-r\" \"\\eqhh --\\n\" # bind hh to Ctrl-r (for Vi mode check doc)"
189 191 // alternate binding options in zsh: // alternate binding options in zsh:
190 192 // bindkey -s '^R' '^Ahh ^M' // bindkey -s '^R' '^Ahh ^M'
191 193 // bindkey -s "\C-r" "\C-ahh \C-j" // bindkey -s "\C-r" "\C-ahh \C-j"
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