diff --git a/zshrc b/zshrc index db7b3d1..a7ad76d 100644 --- a/zshrc +++ b/zshrc @@ -48,10 +48,15 @@ zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end zle -N history-incremental-search-backward-end history-search-end -bindkey "\e[A" history-beginning-search-backward-end -bindkey "\e[B" history-beginning-search-forward-end +[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward +[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward bindkey '^R' history-incremental-search-backward-end +# Syntax highlighting, if available. +if [[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then + source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +fi + # Home and end keys working bindkey "${terminfo[khome]}" beginning-of-line bindkey "${terminfo[kend]}" end-of-line