Skip to content

Instantly share code, notes, and snippets.

@GeneralD
Last active November 28, 2017 05:29
Show Gist options
  • Save GeneralD/bd3a10afa9d37e9efe7f5af288675ca6 to your computer and use it in GitHub Desktop.
Save GeneralD/bd3a10afa9d37e9efe7f5af288675ca6 to your computer and use it in GitHub Desktop.
Zsh partial search history
# history searching with arrow keys
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment