File man/hh.1 changed (mode: 100644) (index 6d026d6..6ec6bf9) |
... |
... |
export HISTFILESIZE=10000 # increase history file size (default is 500) |
163 |
163 |
export HISTSIZE=${HISTFILESIZE} # increase history size (default is 500) |
export HISTSIZE=${HISTFILESIZE} # increase history size (default is 500) |
164 |
164 |
export PROMPT_COMMAND="history \-a; history \-n; ${PROMPT_COMMAND}" |
export PROMPT_COMMAND="history \-a; history \-n; ${PROMPT_COMMAND}" |
165 |
165 |
# if this is interactive shell, then bind hh to Ctrl-r (for Vi mode check doc) |
# if this is interactive shell, then bind hh to Ctrl-r (for Vi mode check doc) |
166 |
|
if [[ $\- =~ .*i.* ]]; then bind '"\eC\-r": "\eC\-a hh \eC-j"'; fi |
|
|
166 |
|
if [[ $\- =~ .*i.* ]]; then bind '"\eC\-r": "\eC\-a hh -- \eC-j"'; fi |
167 |
167 |
.sp |
.sp |
168 |
168 |
.fi |
.fi |
169 |
169 |
The prompt command ensures synchronization of the history between BASH memory |
The prompt command ensures synchronization of the history between BASH memory |
|
... |
... |
Optionally add the following lines to ~/.zshrc: |
174 |
174 |
.sp |
.sp |
175 |
175 |
export HISTFILE=~/.zsh_history # ensure history file visibility |
export HISTFILE=~/.zsh_history # ensure history file visibility |
176 |
176 |
export HH_CONFIG=hicolor # get more colors |
export HH_CONFIG=hicolor # get more colors |
177 |
|
bindkey -s "\eC\-r" "\eeqhh\en" # bind hh to Ctrl-r (for Vi mode check doc) |
|
|
177 |
|
bindkey -s "\eC\-r" "\eeqhh\en" # bind hh to Ctrl-r (for Vi mode check doc, experiment with --) |
178 |
178 |
.sp |
.sp |
179 |
179 |
.fi |
.fi |
180 |
180 |
.SH EXAMPLES |
.SH EXAMPLES |