1 # How should be current element of the list drawn. Possible values: reverse,
3 # On Linux virtual terminal this will be enforced to reverse (because of poor
4 # underline support on that terminal). The same for screen/tmux.
5 local active_text=underline
7 # Highlight a few keywords
8 local NLIST_COLORING_PATTERN="(while|for |sudo|make|(#s)git|vim(#e)|vim |emacs(#e)|emacs )"
9 local NLIST_COLORING_COLOR=$'\x1b[00;33m'
10 local NLIST_COLORING_MATCH_MULTIPLE=1
12 # Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
14 keywords=( "git" "vim" "mplayer" )
23 # Zshrc integration. All below variables can
24 # be set in zshrc and will have precedence
28 # 1. znt_history_active_text
29 active_text=${znt_history_active_text:-$active_text}
31 # 2. znt_history_nlist_coloring_pattern
32 NLIST_COLORING_PATTERN=${znt_history_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
34 # 3. znt_history_nlist_coloring_color
35 NLIST_COLORING_COLOR=${znt_history_nlist_coloring_color:-$NLIST_COLORING_COLOR}
37 # 4. znt_history_nlist_coloring_match_multiple
38 NLIST_COLORING_MATCH_MULTIPLE=${znt_history_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
40 # 5. znt_history_keywords (array)
41 if (( ${+znt_history_keywords} )); then
42 keywords=( "${znt_history_keywords[@]}" )