diff options
| author | listout <listout@protonmail.com> | 2021-04-12 12:42:21 +0000 |
|---|---|---|
| committer | listout <listout@protonmail.com> | 2021-04-12 12:42:21 +0000 |
| commit | bbd9da0d4b0239bdf2ec8e31ac3df0194f445054 (patch) | |
| tree | 215ca53427e54a83c51bcc713bed9848b4c75e1c /.config/zsh/history_search.zsh | |
| parent | 15f10d928957173033ac2466cd4ff030cb1f629d (diff) | |
| download | dots-bbd9da0d4b0239bdf2ec8e31ac3df0194f445054.tar.gz | |
zsh configuration added
Diffstat (limited to '.config/zsh/history_search.zsh')
| -rw-r--r-- | .config/zsh/history_search.zsh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/zsh/history_search.zsh b/.config/zsh/history_search.zsh new file mode 100644 index 0000000..5a0c3d7 --- /dev/null +++ b/.config/zsh/history_search.zsh @@ -0,0 +1,15 @@ +# History search +HISTFILE=~/.cache/zsh/zsh_history +HISTSIZE=90000 +SAVEHIST=90000 +setopt appendhistory + +autoload -Uz up-line-or-beginning-search down-line-or-beginning-search +zle -N up-line-or-beginning-search +zle -N down-line-or-beginning-search + +[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-beginning-search +[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-beginning-search + +## Do not write duplicate events to history +# setopt HIST_SAVE_NO_DUPS |
