n-history.conf
1298 bytes
1# How should be current element of the list drawn. Possible values: reverse,
2# underline.
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.
5local active_text=underline
6
7# Highlight a few keywords
8local NLIST_COLORING_PATTERN="(while|for |sudo|make|(#s)git|vim(#e)|vim |emacs(#e)|emacs )"
9local NLIST_COLORING_COLOR=$'\x1b[00;33m'
10local NLIST_COLORING_MATCH_MULTIPLE=1
11
12# Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
13local -a keywords
14keywords=( "git" "vim" "mplayer" )
15
16
17
18
19
20
21
22#
23# Zshrc integration. All below variables can
24# be set in zshrc and will have precedence
25# over config files
26#
27
28# 1. znt_history_active_text
29active_text=${znt_history_active_text:-$active_text}
30
31# 2. znt_history_nlist_coloring_pattern
32NLIST_COLORING_PATTERN=${znt_history_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
33
34# 3. znt_history_nlist_coloring_color
35NLIST_COLORING_COLOR=${znt_history_nlist_coloring_color:-$NLIST_COLORING_COLOR}
36
37# 4. znt_history_nlist_coloring_match_multiple
38NLIST_COLORING_MATCH_MULTIPLE=${znt_history_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
39
40# 5. znt_history_keywords (array)
41if (( ${+znt_history_keywords} )); then
42 keywords=( "${znt_history_keywords[@]}" )
43fi