diff options
Diffstat (limited to '_zsh/70-history.zsh')
-rw-r--r-- | _zsh/70-history.zsh | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/_zsh/70-history.zsh b/_zsh/70-history.zsh deleted file mode 100644 index 1d294f6..0000000 --- a/_zsh/70-history.zsh +++ /dev/null @@ -1,34 +0,0 @@ -# -# zsh/history.zsh -# see zshparam(1) -# - -HISTFILE=~/.zsh_history -HISTSIZE=9000 -SAVEHIST=9000 -# ignore these commands without arguments -HISTIGNORE="cd:ls:ll" - - -# Combine history search with `percol` -# Credit: https://github.com/mooz/percol -if exists percol; then - function percol_select_history() { - local tac - exists gtac && tac="gtac" || { - exists tac && tac="tac" || { - tac="tail -r" } } - BUFFER=$(fc -l -n 1 | eval ${tac} | percol --query "${LBUFFER}") - CURSOR=${#BUFFER} # move cursor - zle -R -c # refresh - } - - zle -N percol_select_history - # Override the bindkey settings in `60-bindkeys.zsh` - bindkey '^R' percol_select_history - # Override the bindkey settings in `50-vi-mode.zsh` - bindkey -M viins '^r' percol_select_history - bindkey -M vicmd '^r' percol_select_history -fi - -# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # |