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" |