about summary refs log tree commit diff stats
path: root/.config
diff options
context:
space:
mode:
authorVitor Gonçalves <vitorg@tilde.team>2024-01-24 03:37:44 -0300
committerVitor Gonçalves <vitorg@tilde.team>2024-01-24 03:37:44 -0300
commitd99a982fb6853302f5720061e085417392005b1e (patch)
treee3e2ad8ef3554ad698dace9b4b6c0e7aee921451 /.config
parent8b4f910dc4befc449924376d777dafdcbd297478 (diff)
downloaddots-d99a982fb6853302f5720061e085417392005b1e.tar.gz
nice feature i found on the internet
Diffstat (limited to '.config')
-rw-r--r--.config/zsh/.zshrc7
1 files changed, 7 insertions, 0 deletions
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