diff options
author | Vitor Gonçalves <vitorg@tilde.team> | 2024-01-24 03:37:44 -0300 |
---|---|---|
committer | Vitor Gonçalves <vitorg@tilde.team> | 2024-01-24 03:37:44 -0300 |
commit | d99a982fb6853302f5720061e085417392005b1e (patch) | |
tree | e3e2ad8ef3554ad698dace9b4b6c0e7aee921451 | |
parent | 8b4f910dc4befc449924376d777dafdcbd297478 (diff) | |
download | dots-d99a982fb6853302f5720061e085417392005b1e.tar.gz |
nice feature i found on the internet
-rw-r--r-- | .config/zsh/.zshrc | 7 |
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 |