zsh: feat: Add zsh-history-substring-search

This commit is contained in:
PorridgePi
2021-11-21 13:35:32 +08:00
parent 99f696c1be
commit 4b9f172f43

6
.zshrc
View File

@@ -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