Skip to content

Commit

Permalink
Merge pull request holman#285 from calvn/search-history
Browse files Browse the repository at this point in the history
Improve search history
  • Loading branch information
holman committed May 6, 2017
2 parents 39c645c + a89a9dc commit f75397b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zsh/zshrc.symlink
Expand Up @@ -39,3 +39,12 @@ do
done

unset config_files

# Better history
# Credits to https://coderwall.com/p/jpj_6q/zsh-better-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

0 comments on commit f75397b

Please sign in to comment.