From 20471d4e538130d1f6973c578e2c3c43dfbd88c9 Mon Sep 17 00:00:00 2001 From: DustVoice Date: Tue, 20 Apr 2021 01:30:50 +0200 Subject: [PATCH] Add history modification stuff --- .zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index adc3c72..68e0113 100644 --- a/.zshrc +++ b/.zshrc @@ -10,8 +10,8 @@ COMPLETION_WAITING_DOTS="true" HIST_STAMPS="yyyy-mm-dd" -HISTSIZE=1000000 -SAVEHIST=$HISTSIZE +SAVEHIST=99999999 +HISTSIZE=999999999 setopt HIST_EXPIRE_DUPS_FIRST setopt HIST_IGNORE_DUPS @@ -40,6 +40,8 @@ if [[ -a $ZNAP_ZSH ]]; then znap prompt dustvoice/dustvoice-zsh-theme + znap source marlonrichert/zsh-hist + znap source zsh-users/zsh-completions znap source zsh-users/zsh-autosuggestions @@ -52,6 +54,9 @@ if [[ -a $ZNAP_ZSH ]]; then bindkey -M vicmd '^K' history-substring-search-up bindkey -M vicmd '^J' history-substring-search-down + + bindkey -M vicmd '^H' push-line-or-edit + bindkey -M vicmd '^L' get-line else PS1=$'%b%n@%M %~ %(!.#.$) '