Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

history-search-backward zsh 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 unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #zsh #mac
ADD COMMENT
Topic
Name
7+7 =