HOWTO: Ghost in the Shell - Part 3

ILUXA

Aspiring Daemon

Reaction score: 411
Messages: 649

vermaden said:
Now back to Query Functions for history:

h is an equivalent of cat ~/.zhistory | grep -i QUERY command.
H is an equivalent of cat ~/.zhistory | grep QUERY command.
Better use "history-incremental-search-backward" and "history-incremental-search-forward",
such functionality is already implemented, it will be much more handy, personally I use ctrl+alt+up/down
to search zsh history:
Code:
# ctrl+alt+up/down to search history
bindkey '\e[1;7A' history-incremental-search-backward
bindkey '\e[1;7B' history-incremental-search-forward

My full ~/.zshrc may be found here.
 
Top