1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 14:20:08 +00:00
ohmyzsh/plugins/zsh-navigation-tools/.config/znt/n-history.conf

44 lines
1.3 KiB
Text
Raw Normal View History

2015-09-20 12:39:46 +00:00
# How should be current element of the list drawn. Possible values: reverse,
2016-04-30 13:16:00 +00:00
# underline.
2015-09-20 12:39:46 +00:00
# On Linux virtual terminal this will be enforced to reverse (because of poor
2016-04-30 13:16:00 +00:00
# underline support on that terminal). The same for screen/tmux.
2015-09-20 12:39:46 +00:00
local active_text=underline
# Highlight a few keywords
local NLIST_COLORING_PATTERN="(while|for |sudo|make|(#s)git|vim(#e)|vim |emacs(#e)|emacs )"
local NLIST_COLORING_COLOR=$'\x1b[00;33m'
local NLIST_COLORING_MATCH_MULTIPLE=1
2016-04-30 13:16:00 +00:00
# Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
local -a keywords
keywords=( "git" "vim" "mplayer" )
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_history_active_text
active_text=${znt_history_active_text:-$active_text}
# 2. znt_history_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_history_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 3. znt_history_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_history_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 4. znt_history_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_history_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 5. znt_history_keywords (array)
if (( ${+znt_history_keywords} )); then
keywords=( "${znt_history_keywords[@]}" )
fi