feat(zsh): search history using up and down arrows

This commit is contained in:
Oliver Davies 2021-10-06 18:42:47 +01:00
parent 4d47e5224f
commit 2386e5f343
2 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,9 @@
bindkey -s "^f" "tmux-sessioniser\n"
# Search through history with the up and down arrows.
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "${terminfo[kcuu1]}" up-line-or-beginning-search # Up
bindkey "${terminfo[kcud1]}" up-line-or-beginning-search # Down