Created
January 21, 2019 15:36
-
-
Save thomasaarholt/4006e5c209390a920c40f497a0805b62 to your computer and use it in GitHub Desktop.
Make arrows navigate "alphabetical" history in zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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