Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created January 21, 2019 15:36
Show Gist options
  • Save thomasaarholt/4006e5c209390a920c40f497a0805b62 to your computer and use it in GitHub Desktop.
Save thomasaarholt/4006e5c209390a920c40f497a0805b62 to your computer and use it in GitHub Desktop.
Make arrows navigate "alphabetical" history in zsh
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment