From d99a982fb6853302f5720061e085417392005b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitor=20Gon=C3=A7alves?= Date: Wed, 24 Jan 2024 03:37:44 -0300 Subject: [PATCH] nice feature i found on the internet --- .config/zsh/.zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index aeeaaa8..6e76594 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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