2012-06-26

ZSH: easy history navigation

Here's a quick help for all of you who want to be able to navigate through history much easier with ZSH.

Paste the following to your ~/.zshrc:

bindkey "\e[A" up-line-or-search
bindkey "\e[B" down-line-or-search


These changes will switch the way history navigation works in zsh; what these do is: whenever you are typing a command at shell prompt, arrow keys will navigate through history for you to find matches for the text you already entered.

No comments:

Post a Comment