How to reverse search command mac

In this article let’s discuss about How to reverse search command mac. Let’s go through the following methods without any delay.

Method 1:

Add to ~/.zshrc:

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 "^[[A" up-line-or-beginning-search # Up
bindkey "^[[B" down-line-or-beginning-search # Down

Hope the above solution works.

Realted Posts : Windows apps how to create shortcut