prezto/modules/zaw/init.zsh
2013-05-09 23:42:13 -07:00

32 lines
979 B
Bash

#
# Loads zaw plugin in prezto
#
# Authors:
# Santiago Suarez Ordoñez <santiycr@gmail.com>
#
# Source plugin file.
source "${0:h}/external/zaw.zsh"
# Add custom shortcuts.
if zstyle -t ':prezto:module:zaw' default-history-search; then
bindkey '^R' zaw-history
fi
# Setup custom syntax highlighting.
zstyle -s ':prezto:module:zaw:filter-select:highlight' selected 'SELECTED' \
|| SELECTED='fg=blue,underline'
zstyle ':filter-select:highlight' selected "$SELECTED"
zstyle -s ':prezto:module:zaw:filter-select:highlight' matched 'MATCHED' \
|| MATCHED='fg=yellow'
zstyle ':filter-select:highlight' matched "$MATCHED" || 'fg=yellow'
zstyle -s ':prezto:module:zaw:filter-select:highlight' title 'TITLE' \
|| TITLE='fg=yellow,underline'
zstyle ':filter-select:highlight' title "$TITLE"
zstyle ':filter-select' max-lines 15
zstyle ':filter-select' rotate-list yes
zstyle ':filter-select' case-insensitive yes
zstyle ':filter-select' extended-search yes