Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

reverse search command mac

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
Source by coderwall.com #
 
PREVIOUS NEXT
Tagged: #reverse #search #command #mac
ADD COMMENT
Topic
Name
5+9 =