diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-06-03 16:25:49 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-06-03 16:25:49 +0800 |
commit | 177e2aab6ec1a6ae2903a758667537a8baaa24e0 (patch) | |
tree | fd6fb4f43fba2d641e4098540984497e18ba9340 /_zsh/50-history.zsh | |
parent | 7f34247bdb3247573db05f7d9f28d5a79a0929be (diff) | |
download | dotfiles-177e2aab6ec1a6ae2903a758667537a8baaa24e0.tar.bz2 |
zsh: adjust the order of history.zsh
Diffstat (limited to '_zsh/50-history.zsh')
-rw-r--r-- | _zsh/50-history.zsh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/_zsh/50-history.zsh b/_zsh/50-history.zsh deleted file mode 100644 index 8b15561..0000000 --- a/_zsh/50-history.zsh +++ /dev/null @@ -1,30 +0,0 @@ -# -# zsh/history.zsh -# - -HISTFILE=~/.zsh_history - -HISTSIZE=10000 -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 - bindkey '^R' percol_select_history -fi - -# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # |