nice feature i found on the internet

This commit is contained in:
Vitor Gonçalves 2024-01-24 03:37:44 -03:00
parent 8b4f910dc4
commit d99a982fb6
Signed by: vitorg
GPG Key ID: B90BF113DF56EB41
1 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,13 @@ autoload -U compinit colors zcalc # theming
setopt PROMPT_SUBST
setopt autocd autopushd pushdignoredups
# nice history search feature
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
bindkey "${terminfo[kcuu1]}" up-line-or-beginning-search
bindkey "${terminfo[kcud1]}" down-line-or-beginning-search
source "$ZDOTDIR/aliases.zsh"
# plugins