From 4b9f172f436a56a1cf4810ccd78ca6af8930580e Mon Sep 17 00:00:00 2001 From: PorridgePi Date: Sun, 21 Nov 2021 13:35:32 +0800 Subject: [PATCH] zsh: feat: Add zsh-history-substring-search --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index 1df607f..5eaf926 100644 --- a/.zshrc +++ b/.zshrc @@ -50,3 +50,9 @@ zinit ice depth=1; zinit light romkatv/powerlevel10k # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +# zsh-history-substring-search +zinit light zsh-users/zsh-history-substring-search +bindkey '^[[A' history-substring-search-up +bindkey '^[[B' history-substring-search-down +export HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=true \ No newline at end of file